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:  [EMAIL PROTECTED]
         [EMAIL PROTECTED]
--------------------------------

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to