O'Reilly logo

Core PHP Programming: Using PHP to Build Dynamic Web Sites by Leon Atkinson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Data Types

PHP has three elemental types of data: integers, floating-point numbers, and strings of text. Integers are sometimes referred to as whole or natural numbers; they contain no decimal point. Floating-point numbers are sometimes called real numbers. They always contain a decimal point, even when only a zero follows it. PHP refers to these as doubles, which is short for double-precision floating-point numbers. Strings are collections of textual data. String constants are always surrounded by double quotes (") or single quotes (').

In addition to these, PHP has four aggregate data types that use the other three: arrays, objects and booleans, and resources. An array is a collection of values associated with indexes. Arrays are discussed ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required