adding a new property to an object instance

From: Date: Fri, 22 Oct 2004 15:52:53 +0000
Subject: adding a new property to an object instance
Groups: php.general 
Request: Send a blank email to php-general+get-200094@lists.php.net to get a copy of this message
Hello, It's seems to be allowed to add a new property (a member ?) to an object instance in both PHP 4 and 5. For example: ************************** class Test { var $Prop1 = 'anything'; } $MyObj = new Test; $MyObj->Prop2 = 'hello'; ************************** But I can't found any documentation saying that it's offcially supported or not. Do you have any information about this ? Do you often use added properties ? --------------------- Skrol29 www.tinybutstrong.com ---------------------

« previous php.general (#200094) next »