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 -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -