Тёмный

13 | Scopes in PHP for Beginners | 2023 | Learn PHP Full Course for Beginners 

Dani Krossing
Подписаться 481 тыс.
Просмотров 17 тыс.
50% 1

In this PHP tutorial I will talk about scopes in PHP, and when we are able to access variables within our scripts! 🙂 Scope is important to know about, since it lets you know when you are able to use variables in our main script, in functions, or in our classes.
Documentation:
www.php.net/ma...
➤ 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 and RU-vid Memberships to share improved and updated lesson material, and for a small fee you can access all the material either from my memberships or Patreon, depending on your preference. I have worked hard, and done my best to help you understand what I teach.
I hope you will find it helpful :)
Memberships: / @dani_krossing
Patreon: / mmtuts

Опубликовано:

 

6 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 27   
@Dani_Krossing
@Dani_Krossing Год назад
Sorry about the long break between videos, I had to take some sick days. 🙂 Hope you all enjoy the video!
@localLyricsPh
@localLyricsPh Год назад
Thanks sir Dani,
@nelsonke6840
@nelsonke6840 Год назад
Thank you so much for the knowledge 😊😊
@cruzinsweetsntreats
@cruzinsweetsntreats Год назад
Take the needed health breaks. It takes a lot to put out all the instructions, as detailed as you have, with minimal editing.
@bimalpaudel8860
@bimalpaudel8860 2 месяца назад
Your hand gestures, weird expressions and jokes makes the learning much more entertaining 😁
@bigbadderwolf
@bigbadderwolf 19 часов назад
At 11:25🤣 you got me on the ranting notice, great details about scope tho
@soundselections648
@soundselections648 10 месяцев назад
Thanks for this video, your talking speed is perfect for the level of information you are sharing.
@birsingh5388
@birsingh5388 Год назад
You are amazing php tutor on the internet
@Escko
@Escko 6 месяцев назад
Great teacher
@ShootYourBricks
@ShootYourBricks Год назад
Just finished your html/css tutorial so I could resume the php course(decided to do it in the right order lol) very helpful!
@return_undefine
@return_undefine Год назад
I have always enjoyed your tutorial 😀 I'm learning allot
@akashgola2153
@akashgola2153 5 месяцев назад
Another amazing video check .✅
@nelsonke6840
@nelsonke6840 Год назад
Hi Dani am just requesting if you can make a shopping cart 🛒🛒 functionality video using php pls 🥺🥺
@andymalunes8316
@andymalunes8316 Месяц назад
rewatching, makes me understand it better now. still at episode 20 tho.
@guillerjamesmantala7311
@guillerjamesmantala7311 4 дня назад
Thankyou sir
@smeggeruk
@smeggeruk Год назад
You mention at the start how a variable within the main code (not inside a function) has global scope, but in the previous video you proved the exact opposite is true. A variable in the main code CAN be accessed from within a function, but it needs to be referred to as global within the function according to the past video. I mention this as if any other users have coding backgrounds and actually considers a variable in the main code as "global" (as we who code would understand global to mean) then they may make mistakes when trying to use those variables without defining the scope within the function. Variables are generally local in the main code, not global, but a child (in this case a function) has access to its parent variables if you force a scope on it. Or at least that is how I understand it, based on what I have seen from your example so far
@lahcenaouina
@lahcenaouina Год назад
Thank u so much ❤❤ ,
@JaroldVincent-hq2xe
@JaroldVincent-hq2xe Год назад
Wow the static keyword is new to me! Hehe but a little intuitive though.. It would read like static is being instantiated or at least assigned value every time the function is called, but actually instantiated and assigned at once.. The syntax though feels like closure in javascript where you use HO functions that return a function, but declare variables inside so that they can be incremented At least with JS, the syntax is intuitive hehe
@toma1610
@toma1610 7 месяцев назад
Thx a lot. I come from the other video. SO, the global variable is just a declaration which will have effect later. There is not any assignments or operations to do like "global $variable = 'same value everywhere' " ?
@mejbahahmed9780
@mejbahahmed9780 10 месяцев назад
need laravel tutorial pls pls
@Dylson
@Dylson 7 месяцев назад
Could someone share with me how you can get the error message printed to the browser? I'm on a Mac, running Monterey and I use Google Chrome, whenever Dani purposely makes an error, it's printed to the browser. I don't see that for my browser. Any tips would be appreciated!
@incredibleman2719
@incredibleman2719 14 часов назад
you're stupid bro
@kjcrafts751
@kjcrafts751 Год назад
Please do a first person shooter game series in Unity❤
@MohammedAlziko
@MohammedAlziko 8 месяцев назад
😘😘😘
@user-sn4nb3ei8p
@user-sn4nb3ei8p 2 месяца назад
SCOUPSS
@user-vp3xs3gw3y
@user-vp3xs3gw3y Год назад
Sir,it s difficult to me some years!
@bbitjkuat8596
@bbitjkuat8596 2 месяца назад
Scoopees😂
Далее
How to get Spongebob El Primo FOR FREE!
01:36
Просмотров 17 млн
Bike Challenge
00:20
Просмотров 16 млн
What is Scope in Python??
10:25
Просмотров 49 тыс.
Learn JSON in 10 Minutes
12:00
Просмотров 3,2 млн
How to get Spongebob El Primo FOR FREE!
01:36
Просмотров 17 млн