Pass by reference
First of all passing a variable in PHP by reference means to modify this variable instead of making copy of it. An example of this feature is to change values of an array as it is being iterated over.
Passing a variable by reference in PHP is done by prepending ampersand sign in-front of a variable.
Comments
Post a Comment