Skip to content

Glossary: PHP Basics

scope

The area where a variable is visible. A function can't see outside variables and its own vanish when it returns, so pass in what it needs. Constants made with `const` are visible everywhere.

Where the book teaches it

Related terms

functionparameterconstant