Re: string function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 Can I just ask what the difference is between ereg and preg_replace? Thanks.

Tryst


 


 

-----Original Message-----
From: Elizabeth M Smith <auroraeosrose@xxxxxxxxx>
To: php-windows@xxxxxxxxxxxxx
Sent: Fri, 8 Feb 2008 14:26
Subject: Re:  string function










Viola Holownia wrote:
> hi
> 
> Have you tried ereg_replace() ?
> http://www.php.net/manual/en/function.ereg-replace.php
> 
> 
> cheers
> viola
> 

I would NOT suggest ereg_replace, especially on windows - if you need to
do advanced replacement and str_replace doesn't work, try preg_replace -
http://php.net/preg_replace

Regular expressions are your friend.

Thanks,
Elizabeth

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




 


________________________________________________________________________
AOL's new homepage has launched. Take a tour at http://info.aol.co.uk/homepage/ now.

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux