Passing elements by value and by reference in PHP

Passing a variable in PHP by value means to use values only. Passing a variable by reference means modify the same variable.

Passing a variable by value does not modify that variable.

Passing a value by reference is not limited to variables only. It is possible to pass by reference classes too.

Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator