note 7546 deleted from Operators by torben

From: Date: Mon, 21 Aug 2000 04:21:28 +0000
Subject: note 7546 deleted from Operators by torben
Groups: php.notes 
Request: Send a blank email to php-notes+get-2817@lists.php.net to get a copy of this message
PHP doesn't force the result to integer if the result is a floating point number. So in the above expression, were $a = 7 and $b = 2 the result would be 3.5 Casting the type to int or integer won't change this. You need to use either a split function or an expression like the one provided by tgg@bigpond.net.au.

« previous php.notes (#2817) next »