<?php
echo(array_shift(foo())); // prints "foo"
echo(array_pop(foo())); // prints "tofu"
function foo() {
return array("foo","bar","foobar","barfoo","tofu");
}
Notice: Only variables should be passed by reference in /in/voQIS on line 2
foo
Notice: Only variables should be passed by reference in /in/voQIS on line 4
tofu
Strict Standards: Only variables should be passed by reference in /in/voQIS on line 2
foo
Strict Standards: Only variables should be passed by reference in /in/voQIS on line 4
tofu
Output for 5.0.5
Fatal error: Only variables can be passed by reference in /in/voQIS on line 2
Process exited with code 255.