RE: [PHP] Integer division

From: Date: Fri, 19 Jan 2001 16:31:57 +0000
Subject: RE: [PHP] Integer division
Groups: php.general 
Request: Send a blank email to php-general+get-35638@lists.php.net to get a copy of this message
> What is the syntax for dividing 7 by 2 and getting 3; not 3.5? you can use: $intVar = ((int)( 7 / 2 )); Chris

« previous php.general (#35638) next »