Re: find out if a number is a multiple of three

From: Date: Thu, 18 Jan 2001 18:38:44 +0000
Subject: Re: find out if a number is a multiple of three
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-35414@lists.php.net to get a copy of this message
On Thu, 18 Jan 2001, Brett wrote: > I am trying to find out if I can take a the quantity of a product ordered > and find out if it is a multiple of three. Can someone point me in the > direction of some documentation or an exmaple of how this can be > accomplished. > > Thanks, > Brett > if (!($number%3)) print("$number is divisible by 3!"); -- Ignacio Vazquez-Abrams <ignacio@openservices.net>

« previous php.general (#35414) next »