if ($value % 2 == 0 ) echo "Value is even"; else echo "Value is odd"; Jonas Rosling wrote:
Hi all, is there any easy why to check if a value is odd or not? Thanks // Jonas
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php