title: Strict Standards: Only variables should be passed by reference PHP Shopping Cart
body: <p>i'm currently in the process of creating a PHP shopping cart but keep i'm stuck with the error "Strict Standards: Only variables should be passed by reference  PHP Shopping Cart". I've researched the error, found many different explanations as to why this is happening. I can't seem to resolve the issue.  Any help would be much appreciated. Please see my code below.</p>
  
  <pre><code>  $img=mysql_real_escape_string(end(explode('/',$_POST['img'])));
  </code></pre>