RE: [PHP] eval() to string???

From: Date: Wed, 24 Jan 2001 15:35:35 +0000
Subject: RE: [PHP] eval() to string???
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-36423@lists.php.net to get a copy of this message
Hi, > I want to evaluate the code in $php_code to *another* string... you have to do it through output buffering: ob_start(); eval($php_code); $another_string=ob_get_contents(); ob_end_clean(); Rgds, Tfr --==< tfr@cafe.ee >==< http://tfr.cafe.ee/ >==< +372-50-17621 >==--

« previous php.general (#36423) next »