note 11853 added to function.preg-replace.php
| From: | ktohg at tritarget dot com | Date: | Fri, 09 Mar 2001 19:29:55 +0000 |
| Subject: | note 11853 added to function.preg-replace.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-12131@lists.php.net to get a copy of this message | ||
Take Note this finction does not works as expected in perl (s/xxx/yyy/) This gunction is global and
single lined.
If your string has multiple lines this function ignores them. So ^ and $ are not line based but one
whole string based.
Also, it is always global (s///g) so you only need one iteration for this function. Putting it in a
while loop could cause serious problems.
http://www.php.net/manual/en/function.preg-replace.php