Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies


Does it exists?

3:26 pm on Dec 15, 2011 (gmt 0)

Full Member

5+ Year Member

joined:Dec 12, 2007
votes: 0

Hi all,
Does PHP define access modifiers PROTECTED, PRIVATE AND PUBLIC for classes?

4:11 pm on Dec 15, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member penders is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2006
posts: 3123
votes: 0

Yes. In PHP 5, class members can be declared as private, protected or public. In PHP 4 everything is implicitly public.

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members