Is there a PHP function that can take a number (or a variable which holds a number) and determine if it is an even or odd number?
Eric
Is there a PHP function that can take a number (or a variable which holds a number) and determine if it is an even or odd number?
Eric
Blogs For Sale - Each blog is packed with 1000s of signatures and ads are highly integrated into the site. Great CTR! Completely customizable from Admin CP. On Sale!
Complete Websites For Sale - Fantastic looking sites rich with content. Come complete with domain names. I only have a couple of these.
Which means:PHP Code:
if ($number % 2 == 0)
Which means:Code:if ($number divided by 2's remainder is 0)
if the number is evenly divisible by 2
filburt1, Web Design Forums.net founder
Site of the Month contest: submit your site or vote for the winner!
Thanks a lot!
Eric
Blogs For Sale - Each blog is packed with 1000s of signatures and ads are highly integrated into the site. Great CTR! Completely customizable from Admin CP. On Sale!
Complete Websites For Sale - Fantastic looking sites rich with content. Come complete with domain names. I only have a couple of these.