> -Original Message-
> From: Jennifer Goodie [mailto:[EMAIL PROTECTED]
> Sent: 09 July 2003 00:43
>
> > $filevalue = str_replace("\\", "/", $filevalue);
> >
> > it is reversing the "\\" to "//" but not replacing them
> with just a single
> > "/".
>
> I think you need to escape your \ so
Never mind. Its working.
thanks
- Original Message -
From: "Jennifer Goodie" <[EMAIL PROTECTED]>
To: "Micah Montoy" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, July 08, 2003 5:43 PM
Subject: RE: [PHP] preg_replace - unders
ROTECTED]>
To: "Micah Montoy" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, July 08, 2003 5:43 PM
Subject: RE: [PHP] preg_replace - understanding
> > $filevalue = str_replace("\\", "/", $filevalue);
> >
> > it is reversing
> $filevalue = str_replace("\\", "/", $filevalue);
>
> it is reversing the "\\" to "//" but not replacing them with just a single
> "/".
I think you need to escape your \ so each \ is \\ so your string should be
""
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: ht
I took a look at the str_replace function and it will work but I am getting
a weird thing happening now. When I do:
$filevalue = str_replace("\\", "/", $filevalue);
it is reversing the "\\" to "//" but not replacing them with just a single
"/".
What may be causing this?
thanks
"Kevin Stone"
5 matches
Mail list logo