/ Published in: PHP
In PHP & or AND is a bitwise operator. When used it performs bitwise operation between two numbers. In the following example, the operator will test if the last bit of $number is 1. Thus successfully tests if $number is even or odd.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$number & 1;
URL: http://www.tiaon.com/wordpress/2007/03/27/the-quicker-way-to/