|
Posted by Alan Little on 05/17/06 22:52
Carved in mystic runes upon the very living rock, the last words of
Ambush Commander of comp.lang.php make plain:
> It looks like in this particular case, $this->$x should be sufficient.
Thanks, but no.
> Otherwise, you may have to split up x into $x_object and $x_name
> (exploding by -> should be sufficient) and calling $x_object->$x_name.
> What you currently have, however, cannot be done.
I'm not sure what you mean. What I'm trying to do is parse variables out
of a string and substitute them with the value. $x (in this example)
would hold the variable name extracted from the string. I'm trying to
figure out how to get to the value of that variable, from there.
--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Navigation:
[Reply to this message]
|