RE: [PHP] number_format question

From: Date: Fri, 01 Nov 2002 03:39:53 +0000
Subject: RE: [PHP] number_format question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-122378@lists.php.net to get a copy of this message
> Tried it. It works but crops everything after the first "," in the number > if you enter a number with commas. Works great if you don't enter any > commas. How many integers can you name that have commas in them??? In other words, you have a string, so PHP converts it to an integer to pass to number format. Thus you only get the integer part up to the first comma. ---John Holmes...

« previous php.general (#122378) next »