PHP Switch Conditional Statement Tutorial

preview_player
Показать описание
Upgrade your Clever Techie learning experience:

UPDATE! (9/13/19) New features and improvements for Clever Techie Patreons:

1. Download full source code with detailed comments - easy to learn and understand code
2. Weekly source code file updates by Clever Techie - every time I learn new things about a topic I will add it to the source file and let you know about the update - keep up with the latest coding technologies
3. Library of custom Clever Techie functions with descriptive, easy to understand comments - skyrocket coding productivity, code more efficiently by using Clever library of custom re-usable functions
4. Syntax code summary - memorize and review previously learned code faster
4. Organized file structure - access all Clever Techie lessons, source code, graphics, diagrams and cheat sheet from a single workspace - no more searching around for previously covered material and source code - save enormous amount of time and effort
5. Outline of topics the source file covers - fast review of all previously learned coding lessons
6. Access to all full HD 1080p videos with no ads
7. Console input examples - interactive examples that make it easier to understand and learn coding
8. Access to updated PHP Programming Book by Clever Techie
9. Early access to Clever Techie videos

Subscribe to Clever Techie patreon:

````````````````````````````````````````````````````````````````````````````````````````````` PHP switch conditional statement is a very useful statement for executing different code based on what the conditional expression evaluates to. In this video we cover switch statement syntax, using switch without breaks, case grouping and alternative way to write the switch statement. At the end, a practical example is showed on how switch can be implemented within a function to get a Chinese new year name from the year parameter provided.

`````````````````````````````````````````````````````````````````````````````````````````````
Hey guys, I'm now using Patreon to share improved and updated video lesson material. For a small fee you can access all the downloadable files from this lesson (source code, icons & graphics, cheat sheets) and everything else included in the video from the Patreon page. Additionally, you will get access to ALL Clever Techie videos in HD format with no ads. Thank you so much for supporting Clever Techie :)

Download this video's files here:

This download (Patreon unlock) includes:
(PHP switch statement cheat sheet, php switch statement source code)
+
( You also get access to ALL source code and any downloadable content of ALL Clever Techie videos, as well as access to ALL videos in HD 1080p quality format with all video ads removed! )

``````````````````````````````````````````````````````````````````````````````````````````````

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

I bought a php course in Udemy and the guy who teach that over there, wasn't so clear in explaining like you are. Thanx for the tutorial.

OlikValera
Автор

case '250mph': echo "You're flying too low! Danger of ground collision!"

alexpol
Автор

i like your way of teach, this is very useful for me....thank i want to make a calculator by using a switch help me.

vinaysinghkotiya
Автор

Can this be used to switch out css files based on the Url that a user maybe on ie profile, home, chat etc? how would you input the URL's into each case?

taospencer
Автор

in the Zodiac Example how does the function actually know what years relate to which animal? As its not been specified anywhere, each case only has numbers 0 - 11? its interesting...

taospencer
Автор

what if i have to repeat the same case but i want the program to take different action ??

abd_alsalamaladawi
Автор

What if the variable is empty what will be case?

princezzalibuyog