Hi,
> $arr2["name"] = "Broness!";
..
> $str3 = "<br>Hello, $arr2['name']";
..
> eval ("\$evaldString = \"$str3\";");
> echo $evaldString;
Your almost there... just remember one very simple rule - if in doubt,
break out. Meaning, if you're having variable resolution issues, then just
break out of the string. Apply the following change to have happy dreams:
From:
> $str3 = "<br>Hello, $arr2['name']";
To:
> $str3 = "<br>Hello, ".$arr2['name'];
--
Dan Hardiker [EMAIL PROTECTED]
ADAM Software & Systems Engineer
First Creative
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php