homepage Welcome to WebmasterWorld Guest from 50.17.66.61
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
PUBLIC Class in PHP
Does it exists?
dbarasuk

5+ Year Member



 
Msg#: 4398239 posted 3:26 pm on Dec 15, 2011 (gmt 0)

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

thanks!

 

penders

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



 
Msg#: 4398239 posted 4:11 pm on Dec 15, 2011 (gmt 0)

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved