Hello
I am new to using writing PHP classes.
I was wondering whether PHP supports access modifier such as public, protected and private like Java and C++ do.
I would like to encapsulate some of the functions in my classes and make them private. Is it possible?
If so, could someone show me how this is done?
thanks
access modifier for functions in a class
Moderator: General Moderators
-
davidklonski
- Forum Contributor
- Posts: 128
- Joined: Mon Mar 22, 2004 4:55 pm