title: extracting the first word of a string using php
body: <p>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.</p>
  
  <pre><code>$string = explode (' ', $string, 2);
  $word = $string[0];
  $string = $string[1];
  </code></pre>
  
  <p>The above seems like it works, but I'm wondering if there is a better way.</p>