Use the urlencode() function.
Or at the very least use str_replace.
And by the way, the ereg_replace() you have works fine. You must be doing
something silly.
-Rasmus
On Wed, 25 Jul 2001, Clayton Dukes wrote:
>
>
> Can someone tell me why this doesn't work?
>
> $home_street = ereg_replace (" " , "+" , $home_street);
>
> The input is "123 happy trail"
> I need the output to be "123+happy+trail"
>
> Thanks,
> Clayton
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
- Re: [PHP] ereg_replace Robin Vickery
- RE: [PHP] ereg_replace Brian V Bonini
- Re: [PHP] ereg_replace Robin Vickery
- RE: [PHP] ereg_replace Maxim Maletsky
- [PHP] ereg_replace Wade
- Re: [PHP] ereg_replace J. Jones
- [PHP] ereg_replace Marc Logemann
- [PHP] ereg_replace Clayton Dukes
- Re: [PHP] ereg_replace Matt Greer
- Re: [PHP] ereg_replace Jason Stechschulte
- [PHP] Re: ereg_replace Rasmus Lerdorf
- [PHP] Re: ereg_replace CC Zona
- [PHP] ereg_replace Mitch Tishaw
- Re: [PHP] ereg_replace Erik Price
- [PHP] ereg_replace alexander sundli
- Re: [PHP] ereg_replace Dean E. Weimer
- [PHP] ereg_replace Nicole Lallande
- Re: [PHP] ereg_replace Jason Wong
- Re: [PHP] ereg_replace Richard Davey
- Re: [PHP] ereg_replace -- Thanks! Nicole Lallande

