Variable Reference « Language Basics « PHP






1.$b is assigned a copy of $a, and in the second part, $b is assigned a reference to $a.
2.& operator creates a reference
3.Create a reference to a variable with the name of the constant's value.
4.Passing by Reference in PHP
5.Only named variables may be assigned by reference.
6.Passing arrays by reference