Welcome to WebmasterWorld Guest from 107.22.7.35

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

PUBLIC Class in PHP

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?

thanks!
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