I have code that goes like this:
<?php
$code = "echo 1;";
$evaluated = eval("$code");
echo $evaluated;
?>
The output returns:
11
What it is doing is when I call the eval() function it automatically outputs it. I don't want it to output what it is evaluating until I call the variable that I assigned the results to ($evaluated). Does anyone have any idea why it is doing that and how I can fix it?
Thanks.
CoB