News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DevShed:
Working with Private Properties to Protect PHP 5 Class Data
May 29, 2008 @ 08:47:04

DevShed continues their look at the use of the member visibility functionality PHP5 offers in its classes with this new part of the series, a look at the private property.

One of the most useful features that was introduced into the improved object model of PHP 5 is "member visibility." It provides PHP developers with the ability to specify the level of access each data member of a class will have in the context of a given application.

They review the other two keywords (public/protected) before venturing on to the use of "private" to protect, but allow access to, methods and properties in a parent class.

0 comments voice your opinion now!
php5 tutorial property private protected public class member visibility


blog comments powered by Disqus

Similar Posts

Lukas Smith's Blog: Its the end of the world as we know it.

Wb Developer Juice: 10 baby steps to install Memcached Server and access it with PHP

Patrick Allaert's Blog: Coding standards: converts PHP4 style constructors to PHP5 one

Brian Nelson's Blog: Writing A Reverse Proxy in PHP5

DevShed: Manipulating String Literals with Interpreter Classes in PHP 5


Community Events





Don't see your event here?
Let us know!


interview conference symfony list podcast framework language library composer security artisanfiles voicesoftheelephpant introduction tool community laravel series version opinion release

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework