Ambigous PHP error message -


this question has answer here:

having this:

... private $responsebuffer = array(); ... 

and within line:

$lm = end(array_values($this->responsebuffer)); 

i

error: variables should passed reference (2048)

as both end , array_values built in , not have call-by-referencei'm puzzled, 1 idea?

(purpose: latest value out of $responsebuffer)

end function receives arguement reference, this:

$var = array_values($this->responsebuffer); $lm = end($var); 

Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -