php - Strict standards error -



php - Strict standards error -

the function parse_users returns array.

i doing next in function:

return reset($this->parse_users($records));

but strict standards: variables should passed reference in...

is because reset() on function?

do have way:

$users = $this->parse_users($records); homecoming reset($users);

or else?

that's exactly. reset takes reference array parameter, needs real variable reference -- if pass-by-reference value.

php

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -