note 38930 deleted from ref.classobj by victor

From: Date: Fri, 19 Aug 2005 19:49:56 +0000
Subject: note 38930 deleted from ref.classobj by victor
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-93922@lists.php.net to get a copy of this message
Note Submitter: heleon@ergens ---- Hi, Take care with setting properties outside a class. I thought I had extended a var named Name en used it outside its class. After some searching I found that it was not the extended Name that was set but a new generated one. Created when setting it. With normal variables I don't find undeclared vars a problem. But with classes it could get messy I think. $this->Characters[$this->CharacterID]->Name = "Hank"; Heleon

« previous php.notes (#93922) next »