note 45746 deleted from function.preg-quote by tomsommer
| From: | tomsommer@php.net | Date: | Thu, 16 Sep 2004 22:14:55 +0000 |
| Subject: | note 45746 deleted from function.preg-quote by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-76853@lists.php.net to get a copy of this message | ||
Note Submitter: sullivat at onid dot orst dot edu
----
You will also need to escape the '/' character if the resulting string is going to be used
as a replacement pattern in preg_replace().
<?php
str_replace('/', '\/', preg_quote($term));
?>