Get first word from a string, but different dividers
<p>I found this solution on stackoverflow for getting the first word from a sentence.</p>

<pre><code>$myvalue = 'Test me more';
$arr = explode(' ',trim($myvalue));
echo $arr[0]; // will print Test
</code></pre>

<p>However, this case takes ' ' (a space) as the divider. Does anyone know how to get the first word from a string if you do not know what the divider is? It can be ' ' (space), '.' (full stop), '.' (or comma). Basically, how do you take anything that is a letter from a string up to the point where there is no letter?</p>

<p>E.g.:</p>

<ul>
<li>'House, rest of sentence here' would give 'House'</li>
<li>'House.' would also give 'House'</li>
<li>'House thing' would also give 'House'</li>
</ul>

<p>Thanks!</p>
