[development] PHP tips n tricks

Earl Miles merlin at logrus.com
Fri Oct 6 17:26:29 UTC 2006


Johan Forngren wrote:
> 2006/10/6, Earl Miles <merlin at logrus.com <mailto:merlin at logrus.com>>:
> 
>     Johan Forngren wrote:
>      > |Hi!
>      > I dare to consider myself a php developer, but I don't know about
>     many
>      > of the small tricks one could use in the language. Eg: $bar = & $foo.
>      > Where can I learn more about this?
> 
>     That's not a trick that's a fundamental. IMNSHO you don't really know
>     the language if you aren't comfortable with references.
> 
> 
> Yeah, but still you have to learn it somewhere...
> 
> If you hint me in the right direction I could probably find it, is 
> 'operators' the correct term to search for? I'm not a native English 
> speaker.

It is an operator but that won't actually explain it much. In this case:

http://us2.php.net/manual/en/language.references.php

I don't have a good 'compiled tips & tricks' to send you to 
unfortunately, but reading through the above should give you a better 
feel for how references work.


More information about the development mailing list