preg_match_all('/[0-9]/', "11dgfdgrgrgrg5555rtrtrt9999",$m) ; 
$a = implode("",$m[0]);
echo $a;