Skip to Content
Mastering PHP 7
book

Mastering PHP 7

by Branko Ajzele
June 2017
Intermediate to advanced
536 pages
9h 49m
English
Packt Publishing
Content preview from Mastering PHP 7

Magic Behind Magic Methods

The PHP language allows for both, a procedural and an object-oriented (OO) way of writing code. Whereas the procedural way is more of a remnant of initial versions of PHP, nothing really stops us from writing fully procedural applications even today. While both approaches have their advantages and disadvantages, the OO way is by far the most dominant one nowadays, the advantages of which are more evident in robust and modular applications, which are nearly impossible to work on with the procedural style.

Knowing the individual features of the PHP OO model is vital to understand, write, and debug modern applications. The magic methods are one of the more interesting and often mystic features of the PHP language. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning PHP 7

Learning PHP 7

Antonio L Zapata (GBP)
Upgrading to PHP 5

Upgrading to PHP 5

Adam Trachtenberg

Publisher Resources

ISBN: 9781785882814Supplemental Content