PHPVariable Scope

Download PHP for free

Introduction

Variable scope refers to the regions of code where a variable may be accessed. This is also referred to as visibility. In PHP scope blocks are defined by functions, classes, and a global scope available throughout an application.

Related Examples

Static properties and variables