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=example&sort=examp le&example=strpos Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. Share your code : http://addexample.weberdev.com Search for PHP Code from your browser http://toolbar.weberdev.com -----Original Message----- From: Binay Agarwal [mailto:[EMAIL PROTECTED] Sent: Saturday, August 16, 2003 2:39 AM To: [EMAIL PROTECTED] Subject: [PHP] better understanding of ereg_replace and other functions 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. Now i am very curious to look at the source code (implementation) of these function so as to be able to decide the right choice for me. Can any one of you tell me where to find the source code of these functions. Do they require special privileges ?? Please help me out Binay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php