June 2002
Intermediate to advanced
800 pages
16h 3m
English
In the previous sections you have already seen that PHP supports variables, but so far you have only learned to use numbers and strings. Just like control structures, data types are a core component of every programming language.
Like most other high-level languages, PHP works to a large extent without types and tries to recognize the data type of a variable by itself. However, PHP provides a set of different data types, as shown in Table 3.1.
| Data Type | Description |
|---|---|
| Int, integer | Numeric values with no commas |
| Double, real | Floating-point number |
| String | A sequence of characters |
| Array | A pool of values |
| Object | A artificial, user-defined data type |
In this section you will learn to use these data ...
Read now
Unlock full access