PHP string explode with regular expression? [closed]

Try this

$string = '"A" 100000 "M" "C" "J" "JOHNSON TRENCHING" 238910';
$string = preg_match_all('/(\"[a-zA-Z0-9\s]+\")|[0-9]+/', $string, $matches);

print_r($matches);

Leave a Comment