Access modifiers are object-oriented programming that is used to set the accessibility of classes, constructors, methods, and other members of php.
Using the access modifiers we can set the scope or accessibility of these classes, methods, constructors, and other members.
There are three types of access modifier in PHP :
Public – When you create a properties and functions in the PHP class and do not specify the access modifier, it is set to public by default. In this mode, the properties and functions is accessible everywhere.
Private – When you create a properties and functions with a private access modifier, it is accessible only within the class in which it is created.
Delhi (Regd. Office): G-78 West Patel Nagar,
New Delhi, Delhi, Pin :- 110008 , India
Phone: +91-8287642586, +91-9873209206, +91-7982466951
Email: info@webdesigninghouse.com
Say NO to SPAM Posts.

Log in to comment or register here.