What data type would be used in PHP to store a numeric value without a decimal?

  • int
  • float
  • string
  • array
In PHP, the int data type is used to store numeric values without a decimal. It can hold positive and negative whole numbers, including zero. Integers are used to perform mathematical operations and represent whole quantities in PHP. Learn more: https://www.php.net/manual/en/language.types.integer.php
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *