Skip to main content

Object-Oriented PHP

  • Chapter
  • 750 Accesses

Abstract

While for many languages object orientation is simply a matter of course, it took several years before such features were incorporated into PHP. Yet the early forays into adding object-oriented features to the language were considered by many to be a poor attempt at best. Although the very basic premises of object-oriented programming (OOP) were offered in version 4, several deficiencies exist, including the following:

  • An unorthodox object-referencing methodology

  • No means for setting the scope (public, private, protected, abstract) of fields and methods

  • No standard convention for naming constructors

  • Absence of object destructors

  • Lack of an object-cloning feature

  • Lack of support for interfaces

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

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   49.99
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.

Rights and permissions

Reprints and permissions

Copyright information

© 2007 W. Jason Gilmore, Bob Bryla

About this chapter

Cite this chapter

(2007). Object-Oriented PHP. In: Beginning PHP and Oracle. Apress. https://doi.org/10.1007/978-1-4302-0367-4_6

Download citation

Publish with us

Policies and ethics