how to replace string in a var

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

    how to replace string in a var

    I have a $var="x y z"; and I want to turn it into a $varbis="x_y_z" ;
    how can I do that?

    thanx in advance
  • Ian.H

    #2
    Re: how to replace string in a var

    On 4 Sep 2004 17:37:00 -0700, kindermaxiz@yah oo.com wrote:
    [color=blue]
    >I have a $var="x y z"; and I want to turn it into a $varbis="x_y_z" ;
    >how can I do that?
    >
    >thanx in advance[/color]


    By RTFM!

    This post shows blatantly you've done sweet FA in regards to your own
    research. Even not knowing the exact details for php.net, a search for
    something "logical" would bring up results that would then become
    obvious.

    Use your _own_ greymatter!



    Regards,

    Ian

    --
    Ian.H
    digiServ Network
    London, UK

    Comment

    Working...