HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
PHP Keywords : Use public to declare a property that can be modified by any code
The public
keyword is an access modifier. It marks a property or method as public.
Public properties and methods can be used by any code that can access the object.
The protected
keyword
The private
keyword
Learn more about access modifiers in our PHP OOP - Access Modifiers Tutorial.
❮ PHP Keywords