note 32454 deleted from function.eval by derick
| From: | derick@php.net | Date: | Wed, 28 May 2003 08:37:44 +0000 |
| Subject: | note 32454 deleted from function.eval by derick | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-49156@lists.php.net to get a copy of this message | ||
Note Submitter: McKing
----
this is the perfect evalHTML function!
excelent for a template engine!
/*
* @param $filename, the template file
* @return the content of the file parsed.
*/
function evalHTML($filename)
{
ob_start();
include($filename);
$value = ob_get_contents();
ob_end_clean();
return $value;
}