Many thanks!!

Richard Davey wrote:

Hello Nicole,

Tuesday, February 10, 2004, 5:55:01 PM, you wrote:

NL> Can anyone tell me why this does not work:
NL> $str1=ereg_replace("index.php?src=","index/",$url);

Because it's an invalid regular expression.

NL> is there another way to do this?

Yes, str_replace() for something this simple:

$str1 = str_replace("index.php?src=", "index/", $url);




-- ######################## Nicole Lallande [EMAIL PROTECTED] 760.753.6766 ########################

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



Reply via email to