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

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -