nomor filter php saja
$output = preg_replace( '/[^0-9]/', '', $string );
Dead Dingo
$output = preg_replace( '/[^0-9]/', '', $string );