By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,732 Members | 842 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,732 IT Pros & Developers. It's quick & easy.

ereg_replace quastion

P: n/a
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

Oct 27 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Jit
Use str_replace function.

Oct 27 '05 #2

P: n/a
ki*******@hotmail.com schreef op 27-10-2005 16:41:
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


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
Oct 27 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.