Re: [PHP] If value is divisible by 2

2002-04-30 Thread Alexander Skwar
»Craig« sagte am 2002-04-30 um 09:00:33 +0100 : > 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 if ($foo % 2){ echo "foo is divisible by 2"; } else { echo "it is not"; } Alexander

Re: [PHP] If value is divisible by 2

2002-04-30 Thread Marius Ursache
what e-mail client do you use jason? i like that are fortunes in your signature. i supose that they are automaticly set... Jason Wong a écrit : > On Tuesday 30 April 2002 16:05, Marius Ursache wrote: > > > if(($i % 2)==0) > > Or simply: > > if ($i % 2) > > -- > Jason Wong -> Gremlins Assoc

Re: [PHP] If value is divisible by 2

2002-04-30 Thread Neil Freeman
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 > *

Re: [PHP] If value is divisible by 2

2002-04-30 Thread Jason Wong
On Tuesday 30 April 2002 16:05, Marius Ursache wrote: > if(($i % 2)==0) Or simply: if ($i % 2) -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* To thine own s

Re: [PHP] If value is divisible by 2

2002-04-30 Thread Marius Ursache
if(($i % 2)==0) { $bg_color = $bg_color1; } else { $bg_color = $bg_color2; } $i++; Craig a écrit : > 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 id

[PHP] If value is divisible by 2

2002-04-30 Thread Craig
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