Search Results

  1. intval (PHP 4, PHP 5, PHP 7, PHP 8) intval — Get the integer value of a variable

    • Unset

      unset () destroys the specified variables. The behavior of...

    • Strval

      Get the string value of a variable. See the documentation on...

    • Gettype

      gettype (PHP 4, PHP 5, PHP 7, PHP 8) gettype — Get the type...

    • Doubleval

      Alias of floatval

    • Boolval

      boolval (PHP 5 >= 5.5.0, PHP 7, PHP 8) boolval — Get the...

    • Settype

      settype (PHP 4, PHP 5, PHP 7, PHP 8) settype — Set the type...

    • Floatval

      Return Values ¶ The float value of the given variable. Empty...

    • Empty

      Determine whether a variable is considered to be empty. A...

  2. Definition and Usage The intval () function returns the integer value of a variable.

  3. Jul 11, 2025 · Your All-in-One Learning Portal: GeeksforGeeks is a comprehensive educational platform that empowers learners across domains-spanning computer science and programming, school education, upskilling, commerce, software tools, competitive exams, and more.

  4. Aug 19, 2022 · The intval() function is used to get the integer value of a variable.

  5. The PHP Variable Handling intval() function is used to convert a value to an integer (a whole number). It accepts two inputs: the value to change and the base (number system) to use.

  6. Return Values The integer value of var on success, or 0 on failure. Empty arrays return 0, non-empty arrays return 1.

  7. People also ask

  8. Together we’ll learn how to work with real code, solve true-to-life problems, use cutting edge technologies. Minimum of boring theory and lots of practical tasks.