0
Does php have modifiers like those in java?
I mean: â˘public â˘private and â˘protected
4 Answers
+ 1
php uses local and global variables
+ 1
Absolutely , PHP has keywords as Access Control Modifiers ,
public â accessible from anywhere, even from outside the scope of the class.
private â accessible within the class itself.
protected â same as private, except by allowing subclasses to access protected superclass members.
+ 1
sadly no
0
That means that php is a simplified programming language. Wow.