Skip to main content

Static Variables, Members, and Methods

  • Chapter
Pro PHP
  • 1106 Accesses

Abstract

This chapter discusses the static keyword as it is applied to variables, classes, and methods. You will learn about the scope resolution operator (::) and its implication in object-oriented design. Finally, I will touch on the often heated debate about the usage of static classes in application design.

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

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

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

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Similar content being viewed by others

Rights and permissions

Reprints and permissions

Copyright information

© 2008 Kevin McArthur

About this chapter

Cite this chapter

(2008). Static Variables, Members, and Methods. In: Pro PHP. Apress. https://doi.org/10.1007/978-1-4302-0279-0_2

Download citation

Publish with us

Policies and ethics