Perhaps I can't see the forest for all those trees out there :queasy:
Given the following snippet:
$x = new Sampleclass;
$b = "SampleProperty";
.
.
echo $x->SampleProperty;
works as advertised
But how do you get the poperty value if you only have the variable containing the property name: ie the 'logical' equivilent to doing this:
echo $x[$b]; // which of course does not work with class objects
In other words how can you trundle thru an object programatically with no knowledge of the property name in advance, and not only pull the names out but also their current values?
I tried the get_class_vars functions coupled with a foreach loop, but that only returns newly initialized class values from the constructor etc :mad:
Thanks,
Martyn