note 34414 added to function.floatval

From: Date: Sat, 26 Jul 2003 10:31:27 +0000
Subject: note 34414 added to function.floatval
Groups: php.notes 
Request: Send a blank email to php-notes+get-52693@lists.php.net to get a copy of this message
I have php 4.1 and 5.0b and floatval doesn't work with either of them. a very simple workaround for this is to use (float) <?php $a="1.1a"; echo (float)$a; ?> <?php $a="1.1a"; $a=(float)$a; echo $a; ?> ---- Manual Page -- http://www.php.net/manual/en/function.floatval.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34414 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34414&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34414&report=yes

« previous php.notes (#52693) next »