Re: [PHP4BETA] [PHP4Beta] - reference question

From: Date: Sun, 06 Feb 2000 20:01:07 +0000
Subject: Re: [PHP4BETA] [PHP4Beta] - reference question
References: 1 2  Groups: php.version4 
Request: Send a blank email to php-version4+get-9880@lists.php.net to get a copy of this message
At 01:33 PM 2/6/00 +0100, Christian Schneider wrote:
Andi Gutmans wrote: By the way, I just want to add something to this mail. Unless you really intend to change the array within your function you should pass the array by value. There is no performance hit sending it by value. Is the same true for objects? (No performance hit)
I don't have much time to explain this in too much detail right now but objects you are better off sending by reference (usually, especially when using them with method calls). Andi
- Chris -- Chris Schneider, mailto:cschneid@relog.ch Computers are not intelligent. They only think they are. -- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net For additional commands, e-mail: php4beta-help@lists.php.net To contact the list administrators, e-mail: php4beta-admin@lists.php.net
--- Andi Gutmans <andi@zend.com> http://www.zend.com/

« previous php.version4 (#9880) next »