Ever needed to check if a number is even or odd? If so, here is a pretty simple piece of code that does just that.

<?php
$num = 13;
if($num&1) {
echo 'The number is odd.';
} else {
echo 'The number is even.';
}
?>