note 17508 deleted from function.number-format by cmb

From: Date: Sun, 13 Jan 2019 10:46:20 +0000
Subject: note 17508 deleted from function.number-format by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-210056@lists.php.net to get a copy of this message
Note Submitter: sctemplarknight at hotmail dot com ---- number_format($number,$precision,".","") should be used when setting the value of form elements because if you read the number into a double upon submission, it will only store digits before the comma. <p> ie. <input type="text" value="<?php echo(number_format(2.5343,2,".","")">

« previous php.notes (#210056) next »