note 46298 added to language.operators.arithmetic

From: Date: Wed, 06 Oct 2004 06:28:57 +0000
Subject: note 46298 added to language.operators.arithmetic
Groups: php.notes 
Request: Send a blank email to php-notes+get-78057@lists.php.net to get a copy of this message
a real simple method to reset an integer to a the next lowest multiple of a divisor $startSeq = $startSeq - ($startSeq % $entriesPerPage); if $startSeq was already a multiple, then " $startSeq % $entriesPerPage " will return 0 and $startSeq will not change. ---- Manual Page -- http://www.php.net/manual/en/language.operators.arithmetic.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+46298 Delete -- http://master.php.net/manage/user-notes.php?action=delete+46298&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+46298&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#78057) next »