Modulo operator in PHP

​Modulo operator in PHP is specified with % sign. Result of this operation is the remainder of division of first number by a second one.

If second number is 2, then it is possible to find out if original number is even or odd.

Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator