Re: [PHP] OO method inside a variable

2009-11-04 Thread Robert Cummings
simone.na...@ptvonline.it wrote: Hi everybody, i'm trying to apply a method to an object getting its name from a variable, that i obtain parsing an XML file. For example: $object = new Class; $method = "row()"; #I'm getting this from the XML parser $object->$method; #I've an error here... O

Re: [PHP] OO method inside a variable

2009-11-04 Thread Eddie Drapkin
On Wed, Nov 4, 2009 at 4:36 PM, wrote: > Hi everybody, > i'm trying to apply a method to an object getting its name from a variable, > that i obtain parsing an XML file. > > For example: > > $object = new Class; > $method = "row()"; #I'm getting this from the XML parser > $object->$method; #I've

[PHP] OO method inside a variable

2009-11-04 Thread simone.nanni
Hi everybody, i'm trying to apply a method to an object getting its name from a variable, that i obtain parsing an XML file. For example: $object = new Class; $method = "row()"; #I'm getting this from the XML parser $object->$method; #I've an error here... Obviously the method inside the cla