I've seen that's possible to add public members to objects dinamically,
such as:
?php
class TestClass {
public $One=1;
}
$Obj = new TestClass ();
$Obj-Two = 2;
echo $Obj-Two;
?
There'll be a public Two member that's not defined in the class.
Is it possible to add methods dinamically to an
On Mon, 2004-11-15 at 18:56 +0100, Francisco M. Marzoa Alonso wrote:
I've seen that's possible to add public members to objects dinamically,
such as:
?php
class TestClass {
public $One=1;
}
$Obj = new TestClass ();
$Obj-Two = 2;
echo $Obj-Two;
?
There'll be a public Two
2 matches
Mail list logo