PHP array_pop is not working
<pre><code>$fav = explode("|","0 | 1 | 2 | ");  
print_r($fav);  
$fav = array_pop($fav);  
echo "&lt;br&gt;after &lt;br&gt;";  
print_r($fav);  
</code></pre>

<p>what's the problem in my code? i want to remove the last value in the array <code>$fav</code>.</p>
