Asked 28 Sep, 17 at 03:35 AM
try this:$str = "arj2006";
$str = preg_replace('/[^0-9.]+/', '', $str);
echo $str;