14: Switch Statements in PHP | PHP Tutorial | Learn PHP Programming | PHP for Beginners

preview_player
Показать описание
Switch Statements in PHP | PHP Tutorial | Learn PHP Programming | PHP for Beginners. In this PHP tutorial you will learn about the PHP switch statement. The switch statement works in a similar fashion as the if, else, elseif statements. In the switch statement we ask our code to execute specific code depending on the data we set inside the switch condition.

➤ 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 have never seen an amazing tutorial on php like yours and you saved my energy and time and keep up the nice wok

drkalidandfamilypediatrics
Автор

Very excellent course!
Thank you for making coding easy!

mohamedabassi
Автор

thank god you have a great talent skills like that and you share it for those who want to be like you in the future

akosipsalm
Автор

Daniel, i can't believe you have taught me php within a day, you are wonderful.

MuhammadShoaib-vsps
Автор

Watched Javascript series first, but I'd say if I watched PHP sessions first, it's easier to understand the Javascript sessions. But all of the sessions are still super awesome!!

xiaoyang
Автор

For codes clarity you should write the "break" immediately under the "echo" and not at the same indentation of the "case". Apart of this, your tutorials are very professional. Thx for sharing your knowledge.

jazzorgangrooves
Автор

I like your accent, and your method of teacing is very and good thank you brother thank you so much, you are not just teaching you are actullly helping someone around the globe.

devlver
Автор

Which "theme" and "Color Scheme" did you use in your Sublime text? Please tell me. I like the UI.

saifurpro
Автор

Are these used anywhere? I have never seen anyone use these. If so, when would you use this instead of an in statement?

michaela
Автор

When using switch, what do you do when you have to write x <= 1 or x >5 and < = 10. How would you write that when using switch?

elenaseo
Автор

Thanks for the tutorial but I am still confused when to use switch and if statement... I have a piano website where the user can select more than 1 services. They can choose up to 3 services but I find it hard to use the if statement to add the fees but easier to do this with the switch statement....

pianoLee-sxdx
Автор

When to use if and when to use switch?

adolfjamesurian
Автор

Thank you !
What's happens if :
x ='1';
switch(x) {
case 1:
echo "this is int";
break;
case "1":
echo "this is a string";
break;
}
switch case use "==" or "===" ?

ange