Return to Snippet

Revision: 9862
at November 26, 2008 11:07 by andyhartleeds


Initial Code
if ($i&1) {
   3.
      {
   4.
      echo "$i is odd";
   5.
      }
   6.
      else
   7.
      {
   8.
      echo "$i is even";
   9.
      }

Initial URL


Initial Description


Initial Title
Number Parity function (checking if a number is odd or even)

Initial Tags


Initial Language
PHP