For example, if I do something like
$a = "{${phpinfo()}}";
phpinfo() will be executed from within the context of that string declaration. This doesn't seem to happen when I do $a = $_GET['a'], and set that get var to be equal to {${phpinfo()}}. Why doesn't that behave the same way, and does that mean curly syntax is not dangerous in this way?