How we can select a string up to specific character in php? NB:without using explode()
<p>How we can select a string up to specific character in php?</p>

<p>ie I have a string <code>Wednesday 16-January-2013</code>. I need to get only up to first space. </p>

<p>ie output should be <code>Wednesday</code>.</p>

<p>I done it using explode,</p>

<pre><code>&lt;?php
explode(" ",Wednesday 16-January-2013)
?&gt;
</code></pre>

<p>But too many explodes and array are permitted in the code. So,</p>

<p>How I can do it <strong>without using explode()</strong>?</p>
