While coding PHP applications, there are times when we need to check if a number is even, odd or multiple of another.

Here are few methods to do the same.

Method 1:

Method 2:

Method 3:

Method 4:

Check if number is multiple of another. This can be used to float DIV elements and remove margin from the last ones.

If you know of another methods, do share these in comments.