[pLog-svn] PHP - Return by reference?

howard chen howachen at gmail.com
Fri Jan 26 04:27:55 EST 2007


>From the LT codes, I found a lot of return by reference,

e.g. function &getDb(),


but from the PHP site, it said:

Do not use return-by-reference to increase performance, the engine is
smart enough to optimize this on its own. Only return references when
you have a valid technical reason to do it!


So why you use return by reference?

thanks.


More information about the pLog-svn mailing list