Hello I hope you all fine Today I will Explain What is Global and Local Variable Scope in php. Explanation: A global variable is a variable that is accessible globally. A local variable is one that is only accessible to the current scope, such as temporary variables used in a single function definition.
if you access local variable as globe variable so you can return variable into function so you will b able to access local variable.
if you not check out full Playlist of php Course So Link is blow Please Check out and Don't forget to Subscribe my Channel @coderamp . Thanks For Watching
✅ Subscribe: / @tayyabnadeemcoding
Page:- / coderampofficial
Creator Credits:-
fb:- / mrtayyabnadeem
twitter:- / mrtayyabnadeem
Instagram:- / mrtayyabnadeem