The function parse_users returns an array.
I am doing the following in another function:
return reset($this->parse_users($records));
But I get a Strict Standards: Only variables should be passed by reference in...
Is it because I do a reset() on the function?
Do I have to do it this way:
$users = $this->parse_users($records);
return reset($users);
Or is something else?
That’s it exactly.
resettakes a reference to an array as a parameter, so it basically needs a real variable to reference — even if it is a pass-by-reference value.