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

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator