title: How to get the first word of a sentence in PHP?
body: <p>I want to extract the first word of a variable from a string. For example, take this input:</p>
  
  <pre><code>&lt;?php $myvalue = 'Test me more'; ?&gt;
  </code></pre>
  
  <p>The resultant output should be <code>Test</code>, which is the first word of the input.
  How can I do this?</p>