Re: Objects and objects' references

From: Date: Wed, 23 Aug 2000 09:16:03 +0000
Subject: Re: Objects and objects' references
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-13108@lists.php.net to get a copy of this message
You can always use the & operator. check out http://www.php.net/manual/language.references.php Meir Kriheli MKsoft computer systems 'There's someone in my head but it's not me" - Pink Floyd ----- Original Message ----- From: "Przem Kowalczyk" <przem@sprintnet.pl> To: <php-general@lists.php.net> Sent: Tuesday, August 22, 2000 2:07 PM Subject: [PHP] Objects and objects' references > Hi > > I know if I create an object and give it as a parameter to another object's > method: > > $objA = new ObjA(); > $objB = new ObjB(); > > $objB -> method($objA); > > ObjA got passed by value (and objB gots private copy of objA). I wonder > whether it will change in future. i.e. will be there possibility to choose > if object got passed by value OR reference? > > Przem

« previous php.general (#13108) next »