note 41467 added to function.preg-replace
| From: | mjou at rn2 dot php dot net | Date: | Sun, 11 Apr 2004 18:06:19 +0000 |
| Subject: | note 41467 added to function.preg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-67983@lists.php.net to get a copy of this message | ||
If someone wonders how too make forum command like phpBB has.
preg_replace("\\\\[code\\\\](.*)\\\\[\\/code\\\\]/i", "\\\\1", $str);
/*replaces the info between the [code][/code] brackets in your $str with whatever you want.*/
-mjou
----
Manual Page -- http://www.php.net/manual/en/function.preg-replace.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41467
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41467&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41467&report=yes
Search -- http://master.php.net/manage/user-notes.php