How can I remove a double backslash from a string? Ive tried using strin_replace and replacing all instances of "\" with "\" but this just throws up errors...
Can anyone help?
Thanks
How can I remove a double backslash from a string? Ive tried using strin_replace and replacing all instances of "\" with "\" but this just throws up errors...
Can anyone help?
Thanks
use the stripslashes function.
HTH
GM
Lok at something like ereg_replace...
$string = ereg_replace('\\','', $string);
I think should work - or is it \\\\ ? Sorry - I can't remember.. try both...
Sorted.
Thanks for the help
How and which way ? (may help me in the future - and others who search the boards...)
Originally posted by The Chancer
How and which way ? (may help me in the future - and others who search the boards...)
i had links like this:
C:\Program Files\Apache Group\Apache\htdocs\index.html.de
stripslashes($string); gets rid of the double slashes and makes them single.... I assume on a link like this:
C:\Program Files\Apache Group\Apache\htdocs\index.html.de
All the slashes would disappear...?
Very true - and thanks for the post..
(From Mcr ? Should ask red or blue ?)
Originally posted by The Chancer
Very true - and thanks for the post..
(From Mcr ? Should ask red or blue ?)
RED
Pah - but need I say more ???
3-1.....
1-1.....
We shall get there !
True Blue....
lol we let you win...
BLUE is the REAL winner