preg_replace
| From: | ArsenKirillov | Date: | Mon, 08 Oct 2001 09:59:08 +0000 |
| Subject: | preg_replace | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-70335@lists.php.net to get a copy of this message | ||
How to do something like :
$text_of_template=preg_replace("~\[\*\*phpsrc\*\*[ ]*(.*)[
]*\]~si","<pre>".
implode(file("\\1"))."</pre>",$text_of_template);
i.e. how one can change [**phpsrc** name.php ] in text of template to text
of php script
...,
i think of using preg_* functionms but i don't know howto use functions on
it's "second" argument's.
Help me please...