note 36929 deleted from language.operators.bitwise by danielc

From: Date: Sun, 12 Apr 2009 23:10:00 +0000
Subject: note 36929 deleted from language.operators.bitwise by danielc
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-153131@lists.php.net to get a copy of this message
Note Submitter: rob at thijssen dot co dot uk Reason: 1 ---- Well, every programmer already knows this but for anyone new to the fun here's some quick clean code to determine if a number is odd or even. function oddeven($x){ if($x & 1) return "odd"; else return "even"; }

« previous php.notes (#153131) next »