on 7/25/01 10:38 AM, Clayton Dukes at [EMAIL PROTECTED] 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"
Not exactly what you wanted, but you could do
implode("+", explode(" ", $home_street));
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]