Ambigous PHP error message -
this question has answer here:
- only variables should passed reference 9 answers
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
Post a Comment