Avoid Strict PHP Standards warning with parentheses?

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

PHP Strict standards: only variables must be passed by reference.

$lastEl = array_pop((array_slice($array, -1)));
+4
source share

All Articles