Re: ereg_replace

From: Date: Wed, 25 Jul 2001 15:53:55 +0000
Subject: Re: ereg_replace
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-59568@lists.php.net to get a copy of this message
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 > >

« previous php.general (#59568) next »