Get last 3 words from the string?
<p>How do you get last 3 words from the string?</p>

<p>I managed to get working doing like this:</p>

<pre><code>$statusMessage = explode(" ", str_replace('&amp;nbsp;'," ",$retStatus-&gt;plaintext));
$SliceDate = array_slice($statusMessage, -3, 3);
$date = implode(" ", $SliceDate);
echo $date;
</code></pre>

<p>Is there a shorter way? Maybe there is a PHP function that I did not know..</p>
