Skip to content

Glossary: PHP Basics

visibility (public, private)

Also written: visibility, private, public

Visibility says who may use a property or method: `public` is open to all code, `private` only to the class's own methods.

Where the book teaches it

Related terms

readonlyproperty