note 23360 added to language.operators.arithmetic

From: Date: Tue, 16 Jul 2002 15:17:14 +0000
Subject: note 23360 added to language.operators.arithmetic
Groups: php.notes 
Request: Send a blank email to php-notes+get-33129@lists.php.net to get a copy of this message
to get a DIV function as $result= $x div $y, you can use this way : $result=$x / $y; $result=explode(".",$result); $result=$result[0]; you can add this test to add the modulus : if (($x % $y)>0) $result+=1; -- http://www.php.net/manual/en/language.operators.arithmetic.php http://master.php.net/manage/user-notes.php?action=edit+23360 http://master.php.net/manage/user-notes.php?action=delete+23360 http://master.php.net/manage/user-notes.php?action=reject+23360

« previous php.notes (#33129) next »