php string function to get substring before the last occurrence of a character
<pre><code>$string = "Hello World Again".
echo strrchr($string , ' '); // Gets ' Again'
</code></pre>

<p>Now I want to get "Hello World" from the <code>$string</code> [The substring before the last occurrence of a space ' ' ]. How do I get it??</p>
