Page 1 of 1
function declaration of e.g. asort()
Posted: Fri Jul 11, 2008 6:29 am
by geethalakshmi
What does & beside argument mean in function declaration of e.g. asort()?
Regards,
geetha
http://mycollege.in
http://www.zyxwvutsrqponmlkjihgfedcba.co.in
Re: function declaration of e.g. asort()
Posted: Fri Jul 11, 2008 6:49 pm
by Benjamin
It means your passing a variable by reference, so that any changes made to the copy will affect the original. This is not required with the asort function.
Re: function declaration of e.g. asort()
Posted: Fri Jul 11, 2008 7:20 pm
by Ollie Saunders
notice how in the example on the manual page it's...
...and not...
There's a section in the language reference part of the manual on references for more information.