ereg_replace quastion

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
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

Re: ereg_replace quastion

Use str_replace function.

Re: ereg_replace quastion schreef op 27-10-2005 16:41:
Quoted text here. Click to load it

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

Site Timeline