Abstract
Object-oriented programming provides many advantages over procedural programming. It helps with encapsulation when code is shared within a team or between teams and it can help protect elements of the code from being abused. This is especially the case when code is shared in compiled form but the same mechanisms can be applied to a scripting language like PHP. This chapter describes how object-oriented programming works in PHP.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2016 Frank M. Kromann
About this chapter
Cite this chapter
Kromann, F.M. (2016). Classes and Objects. In: PHP and MySQL Recipes. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0605-8_2
Download citation
DOI: https://doi.org/10.1007/978-1-4842-0605-8_2
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-0606-5
Online ISBN: 978-1-4842-0605-8
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)