Why am I getting "Only variables should be passed by reference" error?

Viewed 3424

Check out this code:

$last = end($p = explode('/', $someString));  

Getting this notice:

Only variables should be passed by reference

I'm really confused because $p is a variable.

4 Answers
Related