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

Tagged: 

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.