How to check if a number is odd or even

// Change '10' to be any number you want
<?=(10&1) ? "odd" : "even"?>

source

Leave a Reply