Re: Replacing a space with an underscore

From: Date: Thu, 01 May 2003 08:25:39 +0000
Subject: Re: Replacing a space with an underscore
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-145914@lists.php.net to get a copy of this message
Hello Ron, Thursday, May 1, 2003, 10:44:01 AM, you wrote: RA> What I would like to do... RA> I would like to have either MySql or PHP replace a space with an underscore RA> from a MySql query. Any ideas on how to do that? http://www.php.net/manual/en/function.eregi-replace.php $foo = "goat cheese jim zoo"; $bar = eregi_replace(" ","_",$foo); echo $bar; -- Best regards, Burhan phplist[at]meidomus[dot]com

« previous php.general (#145914) next »