$string="die fahrt von hier nach dort dauert 20m";preg_match("/\d+/",$string,$result);echo $result[0];