ereg_replace quastion

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kirill_uk@hotmail.com

    ereg_replace quastion

    hi, all, need your help guys!
    i have a variable $var = "one two";
    i need to replace space betwin one and two with "+".
    any idea? thank you all

  • Jit

    #2
    Re: ereg_replace quastion

    Use str_replace function.

    Comment

    • Geert Wirken

      #3
      Re: ereg_replace quastion

      kirill_uk@hotma il.com schreef op 27-10-2005 16:41:[color=blue]
      > hi, all, need your help guys!
      > i have a variable $var = "one two";
      > i need to replace space betwin one and two with "+".
      > any idea? thank you all[/color]

      If you want to encode something to pass in an URL, try urlencode(). This
      function also replaces spaces with an +.

      --
      Met vriendelijke groeten,
      Geert Wirken

      Comment

      Working...