Passing parameters by reference to a PHP function

It is possible to pass a variable by reference to a PHP function. Passing by reference is specified by ampersand sign in front of function's variable. If a variable is passed by reference, then value of that variable will be modified. Objects always are passed to a PHP function by reference, there is no need to specify ampersand sign.

Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator