What are the four scopes of PHP variables?
This article mainly explains "what are the four scopes of PHP variables". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "what are the four scopes of PHP variables?"
PHP variable scope
● local
● global
● static
● parameter
Local scope, global scope