Concept
What types of values does PHP support?
ComputerScienceOne / Using Variables
"PHP supports several different types: Booleans, integers, floating point numbers, strings, arrays, and objects. The way that integers are represented may be platform dependent, but are usually 32-bit signed two’s complement integers, able to represent integers between − 2 , 147 , 483 , 648 and 2,147,483,647. Floating point numbers are also platform dependent, but are usually 64-bit double precision numbers defined by the IEEE 754 standard, providing about 16 digits of precision. Strings and single characters are the same thing in PHP. Strings are represented as sequences of characters from the extended ASCII text table (see Table 2.4) which includes all characters in the range 0–255. PHP does not have native Unicode support for international characters."
Related Ideas
- How does PHP handle undefined variables, null values, and constants?ComputerScienceOne · Using Variables
- How are variables and variable types handled in PHP?ComputerScienceOne · Entry Point & Command Line Arguments
- What primitive types does C support?ComputerScienceOne · Declaration & Assignment
- How do you declare variables in C?ComputerScienceOne · Declaration & Assignment
- What primitive types are available in Java?ComputerScienceOne · Declaration & Assignment