<?php $string = 'cup'; $name = 'coffee'; $str = 'This is a $string with my $name in it.'; echo $str. "\n"; eval("\$str = \"$str\";"); echo $str. "\n"; ?>The above example will output:
This is a $string with my $name in it. This is a cup with my coffee in it.
not only was that extremely confusing, but after reading the description of the function and playing around with it, it only got worse... thankfully, i was able to come to an understanding of it, but it was quite difficult.
so, what's your story?