fault in preg_replace example
| From: | Konstantin Schukraft | Date: | Fri, 21 Feb 2003 20:03:47 +0000 |
| Subject: | fault in preg_replace example | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969351907@lists.php.net to get a copy of this message | ||
hi,
i just foung a little fault in the first example to preg_replace:
first used:
$str = "April 15, 2003"; //$str instead $string
but later:
print preg_replace($pattern, $replacement, $string); //$string
I don't have a CVS-Acc yet, so someone else should fix this :)
Konstantin Schukraft