note 38021 deleted from ref.xslt by tomsommer

From: Date: Tue, 29 Jun 2004 19:17:44 +0000
Subject: note 38021 deleted from ref.xslt by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-72130@lists.php.net to get a copy of this message
Note Submitter: ds@NOSPAM.undesigned.org.za ---- A better way of evaluating and replacing <php:eval> data: To use: phpEval($buffer); Hope it helps :-) function phpEval(&$buffer) { $buffer = preg_replace_callback( "|<php:eval>(.*)</php:eval>|UsS", "evaluationCallback", $buffer ); } function evaluationCallback($matches) { return eval($matches[1]); }

« previous php.notes (#72130) next »