13: Various Conditional Statements in PHP | PHP Tutorial | Learn PHP Programming | PHP for Beginners

Various Conditional Statements in PHP | PHP Tutorial | Learn PHP Programming | PHP for Beginners. In this PHP tutorial you will learn about if, else, and elseif statements. These statements are used to set specific conditions which needs to be met before certain PHP script is executed, or to decide which of multiple PHP scripts needs to be executed.
These statements are also used frequently when writing PHP code which makes them important to learn.

➤ 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 🙂

Material for this lesson: https://www.patreon.com/posts/php-13-download-15609131

Comments

Eng/abdallah Rashid says:

شرح ممتاز جدا الى الان انا فاهم
you are perfect thank you

birdman says:

Thank you so much! You have a very good teaching style and it makes it fun to learn!

Andrien Jimenez says:

I was wondering how he made the text in his browser appear larger, can anyone perhaps tell me how he does it? also, whenever I access the folder with the stuff I made using localhost, it seems to direct me to the index and not the file itself! :'(

Vojtech Cizinsky says:

shoutout to all daniels

Rashmi Sharma says:

your video is too good, and also to the point!!!

Damian Wojcik says:

C’mon we get this, Daniel is the fuckin’ prettiest person ever born, can’t you use anything else as example, use your imagination dude

Jorge Hernandez says:

Hei, thanks for your tutorial..great work!!…. I was wondering whether MySql uses separatly from PHP..or are these two dependents?.. I mean whats the relationship between them? Thanks

Nick says:

Excellent lesson. Just an example – if we own a car dealer office and we want to show to our clients when we are currently opened or closed – in the body tags:

Luxury Car Dealer

Opening hours Monday through Friday from 09:00 – 21:00

Current status:
< ?php $time = date("H"); if ($time>9 && $time<21 ) {
echo "Opened";
} else {
echo "Closed";
}
?>

Reflexez says:

I masturbate daily to your tutorials. Oh yeah, and I learn some code here & there too 😛

Steve O'Shaughnessy says:

Dude, you use the word actually 45 times in 4 minutes. Actually you did.

MoVine says:

im keep running like bolt

Jan C. says:

1:59 Haha you programmer humor is on point

Nabeel Javed says:

why r u after daniel? always lol..

asif 51353C says:

Bro you have created Great Tutorials. The Whole world is thankful to you for these nice tutorials. Thanks from Pakistan.

Aaron Carillo says:

are you from w3school? the guidelines are the same

 Write a comment

*

Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!