Re: [PHP] better understanding of ereg_replace and other functions

2003-08-16 Thread Jaap van Ganswijk
At 2003-08-16 23:05 +, Curt Zirzow wrote: >* Thus wrote Binay Agarwal ([EMAIL PROTECTED]): >> Hi everybody, >> >> Lot of places in manual i came across using "ereg_replace" or "ereg" is very >> resource intensive and hence its better to use "preg_replace" or "str_replace" or >> "strpos" if t

Re: [PHP] better understanding of ereg_replace and other functions

2003-08-16 Thread Curt Zirzow
* Thus wrote Binay Agarwal ([EMAIL PROTECTED]): > Hi everybody, > > Lot of places in manual i came across using "ereg_replace" or "ereg" is very > resource intensive and hence its better to use "preg_replace" or "str_replace" or > "strpos" if they do the jobs. > I believe the use of ereg_repla

RE: [PHP] better understanding of ereg_replace and other functions

2003-08-16 Thread Wouter van Vliet
You can just download the source distribution of php, and on a linux commandline do: grep -inr preg_replace * You'll find all occurances of preg_replace, including it's declaratin, which I have copies below. It seems like it's being passed thru to another function .. Which is also on the same fil

RE: [PHP] better understanding of ereg_replace and other functions

2003-08-16 Thread Boaz Yahav
Try these : preg_replace http://www.weberdev.com/AdvancedSearch.php?searchtype=example&sort=examp le&example=preg_replace str_replace http://www.weberdev.com/AdvancedSearch.php?searchtype=example&sort=examp le&example=str_replace strpos http://www.weberdev.com/AdvancedSearch.php?searchtype=examp