Home Forums PHP Check if a number is even or odd using PHP

Tagged: 

This topic contains 0 replies, has 1 voice, and was last updated by  Usman Haider 3 years, 2 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #661

    Usman Haider
    Keymaster

    In some scenarios there is a need of checking if a number is even or odd. This simple trick can be done very easily using PHP. Here is how to do it:

    Hope your problem is solved 🙂

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.