Re: eval help
| From: | neko | Date: | Mon, 03 Mar 2003 15:25:37 +0000 |
| Subject: | Re: eval help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-137901@lists.php.net to get a copy of this message | ||
ok - my latest in the eval saga is this:
I want to be able to eval a function call anywhere in the string supplied,
and the function call is not in scope when the string is defined.
So
-- somewhere in my code I wanted something like this:
$string = "<br>testing nodename: \$node->getName()
pagename:\$nodePageTags[".TAG_PAGENAME."]";
-- where the code is evaled eventually, there is a $node object defined, so
the function call should work. Of course, that currently does not work :)
cheers,
neko