note 29224 added to function.number-format

From: Date: Thu, 06 Feb 2003 14:35:55 +0000
Subject: note 29224 added to function.number-format
Groups: php.notes 
Request: Send a blank email to php-notes+get-43516@lists.php.net to get a copy of this message
Hey 'martinom at walshsimmons dot co dot uk', I had the same problem of not being able to use the thousands comma removal method that is listed above and I am using PHP4. I don't know why this is the case, but I can't use numerical comparison on my variable either. My best guess is that the number is stored as a string instead of a float within the PHP. I just used substr() to get around the problem. I'm not a PHP expert, so if this is wrong, please let me know. It works for me though. -- http://www.php.net/manual/en/function.number-format.php http://master.php.net/manage/user-notes.php?action=edit+29224 http://master.php.net/manage/user-notes.php?action=delete+29224 http://master.php.net/manage/user-notes.php?action=reject+29224

« previous php.notes (#43516) next »