What is the capacity of integer variable? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is the capacity of integer variable?

21st Apr 2016, 7:10 AM
Akash Narayan Sutar
Akash Narayan Sutar - avatar
2 Answers
+ 3
From the PHP manual: The size of an integer is platform-dependent, although a maximum value of about two billion is the usual value (that's 32 bits signed). PHP does not support unsigned integers. Integer size can be determined using the constant PHP_INT_SIZE, and maximum value using the constant PHP_INT_MAX since PHP 4.4.0 and PHP 5.0.5.
9th Jun 2016, 11:56 AM
James Flanders
+ 3
four bites..
15th Jun 2016, 1:55 AM
Mahrukh Ahmed
Mahrukh Ahmed - avatar