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)

5+ Year Member

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

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

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

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

Featured Threads

Hot Threads This Week

Hot Threads This Month