Skip to main content

Variables and Data Types

  • Chapter
  • 139 Accesses

Abstract

Data types form the backbone of any programming language, providing the programmer with a means by which to represent various types of information. PHP provides support for six general data types:

  • Integers

  • Floating-point numbers

  • Strings

  • Arrays

  • Objects

  • Booleans

One of the pillars of any programming language is its support for numbers. PHP supports both integers and real (double) numbers. Each of these number formats is described in further detail later.

This is a preview of subscription content, log in via an institution.

Buying options

eBook
USD   24.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   34.95
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2001 W. J. Gilmore

About this chapter

Cite this chapter

Gilmore, W.J. (2001). Variables and Data Types. In: A Programmer’s Introduction to PHP 4.0. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-0856-3_2

Download citation

  • DOI: https://doi.org/10.1007/978-1-4302-0856-3_2

  • Publisher Name: Apress, Berkeley, CA

  • Print ISBN: 978-1-893115-85-9

  • Online ISBN: 978-1-4302-0856-3

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics