0
Does php have modifiers like those in java?
I mean: •public •private and •protected
4 Réponses
+ 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.