Re: What's the Difference?
| From: | Bogdan Stancescu | Date: | Fri, 13 Dec 2002 14:16:24 +0000 |
| Subject: | Re: What's the Difference? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128161@lists.php.net to get a copy of this message | ||
...therefore it's faster. Only use it when you really need regexp functionality - same with all other functions which are dual straight string/regexp matching.
Leif K-Brooks wrote:
str_replace() doesn't have regex. Stephen wrote:I can't quite figure this out... What exactly is the difference between str_replace() and ereg_replace()? Don't they both do the exact same thing? Thanks, Stephen Craton http://www.melchior.us "What is a dreamer that cannot persevere?" -- http://www.melchior.us