What References Do




it means that $a and $b point to the same variable.

Notatka: $a and $b are completely equal here, that's not $a is pointing to $b or vice versa, that's $a and $b pointing to the same place.








Notatka :




will make $a to be 6. This happens because in the function foo the variable $var refers to the same content as $a . See also more detailed explanations about passing by reference .