How to check if a number is odd or even


/ Published in: PHP
Save to your folder(s)

How to check if a number is odd or even in PHP. Could also use the MOD (%) function, but apparently this method is better performance-wise.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.