I was looking through some code for work, and came across this line:
eval("\$element = \"$element\";");
I’m really confused as to why any PHP developer would’ve written this line. What purpose does this serve, besides setting a variable to itself?
Luckily, the function this line is in is never called.
The above example will output:
http://php.net/manual/en/function.eval.php
I do just ctl+c ctrl+v 🙂