How to replace a backslash character in a string?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • no.mail.pls

    #1

    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


  • Geoff Muldoon

    #2
    Re: How to replace a backslash character in a string?

    In article <441a4f1f$0$157 88$14726298@new s.sunsite.dk>, no.mail@st.peters
    says...[color=blue]
    > Hi,
    >
    > How can i replace a backslash character in a string?
    >
    > The following does not work:
    > $wd = strtr($wd, "\", " ");
    >
    > TIA
    >[/color]

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

    GM

    Comment

    • no.mail.pls

      #3
      Re: How to replace a backslash character in a string?

      "Geoff Muldoon" <geoff.muldoon@ trap.gmail.com> wrote in message
      news:MPG.1e84fd ac3d43829198979 5@news.readfree news.net...[color=blue]
      > In article <441a4f1f$0$157 88$14726298@new s.sunsite.dk>, no.mail@st.peters
      > says...[color=green]
      >> Hi,
      >>
      >> How can i replace a backslash character in a string?
      >>
      >> The following does not work:
      >> $wd = strtr($wd, "\", " ");
      >>
      >> TIA
      >>[/color]
      >
      > IIRC
      > $wd = strtr($wd, "\\", " ");
      >
      > GM[/color]

      Many thanks for the reply.

      cheers


      Comment

      Working...