RE: [PHP] Is it odd or even???

From: Date: Mon, 05 Mar 2001 20:28:48 +0000
Subject: RE: [PHP] Is it odd or even???
Groups: php.general 
Request: Send a blank email to php-general+get-42664@lists.php.net to get a copy of this message
use the modulus operator: ($number % 2) returns 0 if the value is even Larry Jeannette MIS Director, e.Republic -----Original Message----- From: Brandon Orther [mailto:brandon@webintellects.com] Sent: Monday, March 05, 2001 12:18 PM To: PHP User Group Subject: [PHP] Is it odd or even??? Hello, Is there an easy way to check and see if a number is odd or even? Thank you, -------------------------------------------- Brandon Orther WebIntellects Design/Development Manager brandon@webintellects.com 800-994-6364 www.webintellects.com -------------------------------------------- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#42664) next »