php split string at first space
snippet in php

php split string at first space

user4433

$array = explode(' ', $string, 2);