access modifier for functions in a class
Posted: Mon Mar 29, 2004 2:13 am
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
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