note 29244 added to function.bcmod

From: Date: Fri, 07 Feb 2003 09:33:05 +0000
Subject: note 29244 added to function.bcmod
Groups: php.notes 
Request: Send a blank email to php-notes+get-43545@lists.php.net to get a copy of this message
Using modulus you can create a circular queue. Say you have five elements: $elm= Array(0 => "a", 1 => "b", 2 => "c", 3 => "d", 4 => "e") Using modulus: 0%4=0 1%4=1 2%4=2 3%4=3 4%4=0 (again) -- http://www.php.net/manual/en/function.bcmod.php http://master.php.net/manage/user-notes.php?action=edit+29244 http://master.php.net/manage/user-notes.php?action=delete+29244 http://master.php.net/manage/user-notes.php?action=reject+29244

« previous php.notes (#43545) next »