24: Local and Global Scope in PHP | PHP Tutorial | Learn PHP Programming | PHP for Beginners

preview_player
Показать описание
Local and Global Scope in PHP | PHP Tutorial | Learn PHP Programming | PHP for Beginners. The global and local scope of a function is used to explain how we use data together with functions in order to read the data in the function.

➤ GET ACCESS TO MY LESSON MATERIAL HERE!

First of all, thank you for all the support you have given me!

I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!

I am now using Patreon to share improved and updated lesson material, and for a small fee you can access all the material. I have worked hard, and done my best to help you understand what I teach.

I hope you will find it helpful :)

Рекомендации по теме
Комментарии
Автор

i'm agree he teaches a lesson in 1 minutes that other maybe spend 10 minutes of time on
with a lots of confusions things
it's wonderfull thank you man <3

hdphoenix
Автор

If simplicity and clarity are beauty, this video is like Audrey freaking Hepburn. Well done, mate.

warzhenaji
Автор

i think you might want to point out that in PHP, a global variable cannot be accessed directly inside of a local scope (say, inside a function for instance), which is very important and strange to me at first

RickyRicheRebelle
Автор

If I do a calculation within a function and it has an answer which is a variable with a specific integer - how would I use that variable in another function or process outside of the original function? Is there a way to make the answer/variable global after the function has been performed?

andrewericson
Автор

Hi! If I use the funcion then will the variable be in the global scope? Thanks for the answer!

CredixNetwork
Автор

And what about writing the word global followed by the $variable to make it work in global scope? Is not like that?

toma
Автор

You forgot to call the function something().

daniellambert
welcome to shbcf.ru