| Posted by Jay Blanchard on 12/07/05 18:00 
[snip]Is it possible to return the result of eval function to a string rather than
 
 outputting directly to the browser?
 
 Thanks for your advice
 [/snip]
 
 Yes.
 
 You're welcome.
 
 The first freakin' example in TFM http://www.php.net/eval is this;
 
 <?php
 $string = 'cup';
 $name = 'coffee';
 $str = 'This is a $string with my $name in it.';
 echo $str. "\n";
 eval("\$str = \"$str\";");
 echo $str. "\n";
 ?>
  Navigation: [Reply to this message] |