hi all,
another brainteaser if possible.
Does anyone know whether it is possible to iterate thru the $this identifier in some way?
EG:
class someClass{
var $one;
var $two;
var $three;
function someMethod(){
for ($i=0;$i<count($this);$i++){
somemethod($this[$i]);
}
}
}
I know this is not possible, but it demonstrates what i mean.
be able to iterate somehow thru $this? applying a function to all the instance variables.
any thoughts?
cheers,
Simon