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 can PHP values and variable states be converted and checked explicitly?ComputerScienceOne · Type Juggling
- How does PHP handle different variable types in arithmetic expressions?ComputerScienceOne · Type Juggling
- How are variables and variable types handled in PHP?ComputerScienceOne · Entry Point & Command Line Arguments
- How does PHP handle undefined variables, null values, and constants?ComputerScienceOne · Using Variables
- How do you create and index arrays in PHP?ComputerScienceOne · Creating Arrays
- What are PHP strings and how should they be treated?ComputerScienceOne · Basics
- How are strings, statements, and code blocks written in PHP?ComputerScienceOne · Basic Syntax Rules
- What primitive types does C support?ComputerScienceOne · Declaration & Assignment