I want to split a string into two variables, the first word and the rest of the string. The first word is only ever going to be one of 4 different words.
$string = explode (' ', $string, 2);
$word = $string[0];
$string = $string[1];
The above seems like it works, but I'm wondering if there is a better way.