i have this:
$variable='get'.$value.'()';
where $value='Address' and also $value changes based on user selection.
so basically what i want is, call my class's functions like this:
list($someclass)=someClass::run();
someClass has a getAddress() function and lots of other functions.
so what i want is $someclass->getAddress();
but i am using this: $someclass->$variable;
as $value changes based on user selection. but i can't get $variable to be printed; well, variable prints like this:
print $variable ==> getAddress()
but i can't get this: print $someclass->$variable;
help