note 88609 deleted from language.variables.scope by danbrown

From: Date: Sat, 31 Jan 2009 18:03:52 +0000
Subject: note 88609 deleted from language.variables.scope by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-150037@lists.php.net to get a copy of this message
Note Submitter: nullhility at gmail dot com ---- I should just mention about my previous note that if the global you're setting is an object then no reference is necessary because of the way PHP deals with objects. If you don't want to reference to the same object however you can use the clone keyword. <?php //... global $Obj; $this->obj_copy = clone $Obj; //... ?>

« previous php.notes (#150037) next »