I have the PHP Manual on my harddrive, both in separate HTML files for the webserver error messages, and in a CHM format for quick reference. I still don't really understand this function's usefulness.
The example given in the PHP Manual is as follows:
CODE
<?php
$string = 'cup';
$name = 'coffee';
$str = 'This is a $string with my $name in it.';
echo $str. "\n";
eval("\$str = \"$str\";");
echo $str. "\n";
?>
It's a horribly general description on the use of the function... I've tried looking at the online manual as people leave comments, but I still don't quite get it. Most things I've seen it used for can be much more easily done in other ways.
However, I'm sure it has its definitive uses; I'd just like to understand where and why...Thanks!