Re: What's the Difference?
| From: | Bogdan Stancescu | Date: | Fri, 13 Dec 2002 14:17:48 +0000 |
| Subject: | Re: What's the Difference? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128162@lists.php.net to get a copy of this message | ||
Ok, you get the meaning even though my mail is confusing: only use *regexp functions* when you need regexp [etc]
Bogdan Stancescu wrote:
...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