How do I avoid error - Strict Standards: Only variables should be passed by reference
<p>I am recieving the following error </p>

<blockquote>
  <p>Strict Standards: Only variables should be passed by reference in C:\wamp\www\dragdrop\newhotel\reservation\ajax\tips.php on line 8</p>
</blockquote>

<p>Line 8 is</p>

<pre><code>$img=mysql_real_escape_string(end(explode('/',$_POST['img'])));
</code></pre>

<p>I'm a newbie please help me..</p>
