note 19077 deleted from language.oop by vincent

From: Date: Thu, 11 Sep 2003 19:58:45 +0000
Subject: note 19077 deleted from language.oop by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-56199@lists.php.net to get a copy of this message
Note Submitter: ebypdx@attbi.com ---- (only tested w/ php4.1.0 w/ apache 1.3.20) It appears that you don't have to declare your vars inside a class, even if you want to serialize an instance of the class. From within any function including the constructor, calling $this->foo = $bar; will create an object var in your class, even if there is no class var named foo declared in your class. If you serialize the object, for example to register it with the client's session or put it in a database, the object var will remain!

« previous php.notes (#56199) next »