Re: [SMARTY] Replace "." in a float-var

From: Date: Sat, 09 Nov 2002 20:19:05 +0000
Subject: Re: [SMARTY] Replace "." in a float-var
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6382@lists.php.net to get a copy of this message
$string = ereg_replace("\.", " ", $string); ----- Original Message ----- From: "Andreas Jud" <save@datacomm.ch> To: <smarty-general@lists.php.net> Sent: Saturday, November 09, 2002 11:22 AM Subject: [SMARTY] Replace "." in a float-var > Hello, > > How can I replace simple the point in a float-variable with a space? > > i.e. > > $float = "12345.24"; > shoud be: > $string="12345 24"; > > I've tried: > $string = (string) $float; > $string = ereg_replace(".", " ", $string); > but it didn't work! :( > > > Thank you, > > Andy > > > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.smarty.general (#6382) next »