Re: Calculating if number is multiple of another number

From: Date: Thu, 03 Jul 2003 01:09:01 +0000
Subject: Re: Calculating if number is multiple of another number
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-153812@lists.php.net to get a copy of this message
jwulff wrote:
How would I calculate if a $number is a multiple of $spacer? if(int($number / $spacer) == ($number / $spacer)){
echo "It's a multiple!"; }else{ echo "Nope!"; } -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.

« previous php.general (#153812) next »