03-01-2009, 09:11 PM
|
#7 (permalink)
|
|
Moderateur
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
|
Some functions, like array_pop as you mentioned, pass some arguments by reference. Examples include array_pop and array_walk whose first arguments (the array to work on) are passed by reference.
As for =& $var versus = &$var, that's up to personal preference. Me, I like to think of it as "assign by reference" not "assign a reference" so would go with =& usually.
|
|
|
|