php explode with first delimeter found only code example Example: php split string at first space $array = explode(' ', $string, 2);