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/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to