note 8275 added to number_format

From: Date: Mon, 04 Sep 2000 04:53:18 +0000
Subject: note 8275 added to number_format
Groups: php.notes 
Request: Send a blank email to php-notes+get-4096@lists.php.net to get a copy of this message
A comma replaces empty string as the last argument because empty string means false, and the parser thinks you left out the last argument. Use true instead. Total: $<? echo number_format(2400,2,".",true); ?> Total: $2400.00 http://www.php.net/manual/function.number-format.php

« previous php.notes (#4096) next »