469,960 Members | 2,638 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,960 developers. It's quick & easy.

How to replace a backslash character in a string?

Hi,

How can i replace a backslash character in a string?

The following does not work:
$wd = strtr($wd, "\", " ");

TIA
Mar 17 '06 #1
2 2993
In article <44***********************@news.sunsite.dk>, no*****@st.peters
says...
Hi,

How can i replace a backslash character in a string?

The following does not work:
$wd = strtr($wd, "\", " ");

TIA


IIRC
$wd = strtr($wd, "\\", " ");

GM
Mar 17 '06 #2
"Geoff Muldoon" <ge***********@trap.gmail.com> wrote in message
news:MP************************@news.readfreenews. net...
In article <44***********************@news.sunsite.dk>, no*****@st.peters
says...
Hi,

How can i replace a backslash character in a string?

The following does not work:
$wd = strtr($wd, "\", " ");

TIA


IIRC
$wd = strtr($wd, "\\", " ");

GM


Many thanks for the reply.

cheers
Mar 17 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Terry Olson | last post: by
14 posts views Thread by Etu | last post: by
4 posts views Thread by jpierson | last post: by
4 posts views Thread by Tim Kelley | last post: by
17 posts views Thread by Levidikus | last post: by
23 posts views Thread by dkirkdrei | last post: by
25 posts views Thread by magix | last post: by
reply views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.