PHP.nl

Spotting References

Spotting References

Many syntax constructs in PHP are implemented via referencing mechanisms, so everything mentioned herein about reference binding also applies to these constructs. Some constructs, like passing and returning by reference, are mentioned above. Other constructs that use references are:

global References

 When you declare a variable as  you
 are in fact creating reference to a global variable. That means,
 this is the same as:
 
```php




     This also means that unsetting 
     won't unset the global variable.
    `$var`

Documentatie