Re: If value is divisible by 2

From: Date: Tue, 30 Apr 2002 08:20:28 +0000
Subject: Re: If value is divisible by 2
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-95332@lists.php.net to get a copy of this message
if (($foo % 2) == 0) { echo "text"; } Neil Craig wrote: > > ************************************************************************* > This Message Was Virus Checked With : SAVI 3.54 Feb 2002 > Last Updated 24th April 2002 > ************************************************************************* > > I am trying to write an if statement that says if the value $foo is > divisible by 2 then echo "text" > > i have tried mod but it isnt recognised > > any ideas? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- -------------------------------- Email: neil.freeman@asa.co.uk neil@curvedvision.com --------------------------------

« previous php.general (#95332) next »