note 46298 deleted from language.operators.arithmetic by salathe

From: Date: Mon, 21 Sep 2020 14:58:03 +0000
Subject: note 46298 deleted from language.operators.arithmetic by salathe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-215396@lists.php.net to get a copy of this message
Note Submitter: glenn at benge dot co dot nz ---- 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.

« previous php.notes (#215396) next »