How can we check the value of a given variable is a number?

Home Forums PHP How can we check the value of a given variable is a number?

This topic contains 1 reply, has 2 voices, and was last updated by  Sushmita Ghosh 5 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1274

    Divya
    Participant

    How can we check the value of a given variable is a number?

    #1275

    Sushmita Ghosh
    Keymaster

    It is possible to use the dedicated function, is_numeric() to check whether it is a number or not.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Pasham Technology © 2018 Pasham Technologies