note 34414 deleted from function.floatval by sniper

From: Date: Sat, 23 Aug 2003 00:15:26 +0000
Subject: note 34414 deleted from function.floatval by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-54901@lists.php.net to get a copy of this message
Note Submitter: mattsoft@mattsoft.net ---- 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; ?>

« previous php.notes (#54901) next »