Programming:Complete PHP/Data type overview

From Wikibooks, the open-content textbooks collection

Jump to: navigation, search

Although the type of a variable can be set (see Type casting and settype()), it is often decided at runtime (see Type juggling).

There are 8 basic data types.

Contents

[edit] Scalar types

[edit] Compound types

[edit] Special types

[edit] Pseudo-types for documentation purposes

Personal tools