get first string sepeated by space in php code example Example: php split string at first space $array = explode(' ', $string, 2);