4

In the following code, why do the extra parentheses avoid the warning?

PHP Strict standards: Only variables should be passed by reference.

$lastEl = array_pop((array_slice($array, -1)));

0 Answers0