note 15433 added to function.number-format

From: Date: Mon, 10 Sep 2001 15:54:16 +0000
Subject: note 15433 added to function.number-format
Groups: php.notes 
Request: Send a blank email to php-notes+get-17879@lists.php.net to get a copy of this message
Para usar um número formatado sem os dígitos depois da vírgula faça como abaixo: $numero = 1545,156 $formatednum = number_format($numero, 0, ',', ''); //isso vai mostrar o número 1545 //o número "0" mostra a quantidade de casas depois da vírgula To use a formated number without the comma. See the exemple: $number = 1545,156 $formatednum = number_format($number, 0, ',', ''); //it will shows the number 1545 //the number "0" shows how many numbers have before the comma(,) http://www.php.net/manual/en/function.number-format.php

« previous php.notes (#17879) next »