note 7914 modified in number_format by danbeck

From: Date: Thu, 28 Jun 2001 15:59:44 +0000
Subject: note 7914 modified in number_format by danbeck
Groups: php.notes 
Request: Send a blank email to php-notes+get-14723@lists.php.net to get a copy of this message
Here's an easy workaround if you need to have a string, instead of a single char, as thousands separator. I need to have a space that won't be wrapped, so I want to have " " instead of a " " there. To accomplish this, do the following: $formatted_number_string = ereg_replace(" "," ",$number_format($number,2,"."," ")) http://www.php.net/manual/number-format.php

« previous php.notes (#14723) next »