note 30715 deleted from language.types.float by googleguy

From: Date: Mon, 11 Feb 2013 05:13:01 +0000
Subject: note 30715 deleted from language.types.float by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-193578@lists.php.net to get a copy of this message
Note Submitter: Theo Diem ---- Just to mention .... $something = "12.20"; $value = (float) $something; Depending you locale settings (see setlocale) this will return a float number 12.2 or 12 (without decimal part, if you locale uses another symbol than dot for decimal part) Be aware if u are working with PHP using one locale setting (by setlocale) and a SQL database with other locale ....

« previous php.notes (#193578) next »