You are here: RE: [PHP] Eval To String « PHP « IT news, forums, messages
RE: [PHP] Eval To String

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация