Local Variable:-
Local Variables mean local is declared inside a function. Its value applies in any function. When local variable value modified in one function then changes not apply in other function changes apply in particular function.
PHP- Global Variable:-
Global Variable means that Global that declared from outside of the function. It is created before the function’s execution starts and lost when the function switch. When you want to access global function in function then add global in function then access global from inside a function.
PHP Fundamental Tutorials with Basic Demo by Chentan in 2020 – Part-1
PHP Fundamental Tutorials with Basic Demo by Chentan in 2020 – Part-2
Latest posts by Rajesh Kumar (see all)
- Best AI tools for Software Engineers - November 4, 2024
- Installing Jupyter: Get up and running on your computer - November 2, 2024
- An Introduction of SymOps by SymOps.com - October 30, 2024