[PHP] Dinamically adding methods to an object instance?

2004-11-15 Thread Francisco M. Marzoa Alonso
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

Re: [PHP] Dinamically adding methods to an object instance?

2004-11-15 Thread Robby Russell
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