adding a new property to an object instance

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
---------------------

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux