There are a couple of ways I use this:
if ($i&1)
{
echo '$i is odd';
}
else
{
echo '$i is even';
}
HTH!
Regards,
Rich
::::::::::::::::::::::::::::::::::::::::::
The Spicy Peanut Project
http://www.spicypeanut.net
::::::::::::::::::::::::::::::::::::::::::