note 83966 deleted from function.eval by danbrown

From: Date: Sun, 17 May 2009 19:52:34 +0000
Subject: note 83966 deleted from function.eval by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155283@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- In response to trukin at gmail dot com A better version would be without using eval <?php function parseTemplate($template, $params=array()) { extract($params); ob_start(); include $template; return ob_get_clean(); } ?>

« previous php.notes (#155283) next »