Posted by Tim Roberts on 09/25/06 05:34
"iulian.ilea" <iulian.ilea@gmail.com> wrote:
>
>I have to eval a string stored in a variable, but it's not working.
>code:
>___
>
>function ee($s)
> {
> return $s;
> }
>
>$v="e(\"name\")";
>
>eval("$stri=$v;");
>echo $stri;
>___
>
>By using eval I want to eval $v and get the result returned by ee
>stored in $stri. How woul you do?
Well, for one thing, I would not try to call a function called "e" when I
had named the function "ee".
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
[Back to original message]
|