note 15433 deleted from function.number-format by jimw

From: Date: Fri, 07 Dec 2001 21:28:50 +0000
Subject: note 15433 deleted from function.number-format by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-22023@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(,)

« previous php.notes (#22023) next »