Re: eval help

From: Date: Mon, 03 Mar 2003 14:09:02 +0000
Subject: Re: eval help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-137886@lists.php.net to get a copy of this message
At 14:47 03.03.2003, neko said: --------------------[snip]-------------------- >$someVar = "<br>testing for node - wootah, \$evalTestArr[TAG_PAGENAME]" > >.... >then in some other function that gets passed this string >... > >$evalTestArr[TAG_PAGENAME] = "hello anna marie gooberfish!"; >$str = $someVar; >eval("\$str=\"$str\";"); > >if I echo it out, the substitution is not done. --------------------[snip]-------------------- try $someVar = "<br>testing for node - wootah, \{\$evalTestArr[TAG_PAGENAME]\}" Array derefs within quoted strings must be enclosed in curly quotes. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#137886) next »