note 14701 deleted from language.operators by jimw

From: Date: Tue, 18 Dec 2001 20:49:50 +0000
Subject: note 14701 deleted from language.operators by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-23211@lists.php.net to get a copy of this message
That's obvious tha 1 % 4 return 1 , and 2 % 4 return 2, The a % b operator returns the remainder of 'a' divided by 'b'. So 1 divide by 4 (thinking in integer values is ZERO , but remains ONE). You have to remeber that "%" don't return the integer part of a division , but the remainder.

« previous php.notes (#23211) next »