You are here: Re: eval problem « PHP Programming Language « IT news, forums, messages
Re: eval problem

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация