> Out of curiosity, I wonder which other features would similarly not work when > eval()'ed...??? > Anything involving unbalanced braces would bork:
eval('if ($a > 5) {'); do_stuff(); } As would any looping initializer like this: eval('foreach($foo as $bar)'); do_itteration($bar); While I havn't tested it, I can't imagine this working: switch ($foo) { eval('case "bar": do_bar(); break;'); case 'baz': do_baz(); break; default: do_default(); } -Sara -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php