PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information

On Visibility in OOP

Note: This article was originally published at Planet PHP on 29 June 2012.
Planet PHP

I'm a big proponent of object oriented programming. OOP done right helps ease code maintenance and enables code re-use.

Starting in PHP, OOP enthusiasts got a whole bunch of new tools, and new tools keep coming into the language for us with each minor release. One feature that has had a huge impact on frameworks and libraries has been available since the earliest PHP 5 versions: visibility.