Replace "." in a float-var
| From: | Andreas Jud | Date: | Sat, 09 Nov 2002 16:22:59 +0000 |
| Subject: | Replace "." in a float-var | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-6378@lists.php.net to get a copy of this message | ||
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