8 | Conditions & Control Structures in PHP | 2023 | Learn PHP Full Course for Beginners

  Рет қаралды 27,310

Dani Krossing

Dani Krossing

Жыл бұрын

In this PHP tutorial I will show you how to branch your code using control structures. 🙂 Control structures include conditions such as if, else if, and else statements, as well as the switch statement. We also have the new match statement, which was included in PHP 8, which I will cover in this video.
Documentation: www.php.net/manual/en/languag...
➤ 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 KZfaq 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

Пікірлер: 27
@Elena-rr5du
@Elena-rr5du Жыл бұрын
I started to learn how to code with your videos back in 2020. I do it only as a hobby, so I take long breaks between projects and forget a lot of things. I always ended up back in your channel every time I want to do something new. That's why I wanted to thank you for such wonderful videos! This is my first time hearing about the "match()"' condition, and I'm in love with it! I usually use so many "if-elseif-else" just to change little things, like the colour of the text depending a number, but now I can do tiny lines with the "match()". Thank you for teaching us even newest ways to improve our codes! :D
@Dani_Krossing
@Dani_Krossing Жыл бұрын
Glad you are enjoying the videos!
@user-ew1em7zy3y
@user-ew1em7zy3y 26 күн бұрын
thank you dani , you give me a what is definition of switch and if and match statement clearly , that is very helpful love you!
@fissionchips223
@fissionchips223 10 ай бұрын
Another fantastic presentation! I can't remember smiling this much while learning, Dani. Your style just makes for terrific education all-around. After multiple degrees, decades in academia and many, many other learning endeavors, I would place your teaching skills at the very top. I never expected this to be fun - THANK YOU SO MUCH for making these videos. They have made a tremendous impact in many folks' lives, obviously! Cheers, man!
@user-vb7xs3ls4p
@user-vb7xs3ls4p 9 ай бұрын
This "match()" thing looks very useful, thanks bro !
@kittencollector7381
@kittencollector7381 Жыл бұрын
Hi Dani! I've been watching your videos non-stop the past few days. You're the best teacher on this sort of thing, I swear. I can just grasp things with you that I find harder to grasp with others. I will forever be grateful for these informative and helpful videos. 🙏 I hope you continue to make more video lessons. It's also really engaging the way you teach. For a suggestion could you maybe show how a website would look when you apply certain changes? The way you teach is super helpful but it would also be nice to follow along to visually see the change or maybe little ms paint drawings as demonstration lol. If you have a few videos like/or on that I might have missed them so I'm sorry! But nonetheless I literally always come to you for my go-to for coding. You're the best and I literally can't say that enough. Thank you!
@VargasForth
@VargasForth 7 ай бұрын
I really love the way you teach us. Very fantastic presentation thank you so much for making these videos!.
@L0kacitron
@L0kacitron Ай бұрын
Ty very much for the informative series on PHP. I come from the MERN stack and felt that it was time to learn another language. Looking forward to do a few test projects and learn Laravel at some stage. :)
@ShawnRitch
@ShawnRitch Жыл бұрын
Well done Dani. Your teaching and video skills are getting better all the time. Thanks for all your hard work :)
@YvanDarcyIteriteka
@YvanDarcyIteriteka 3 ай бұрын
What should I do, if I want to use if..elseif...elseif..else in such a way that every single condition has to be cheched. Thanks! Your videos are instructive and helpful.
@borisndoh1098
@borisndoh1098 8 ай бұрын
I learned quite some stuffs here which were minimized in my Javascript course
@AleJFF25
@AleJFF25 8 ай бұрын
bro, you're a mix of Elon Musk with someone else i can't figure out now haha. Anyways, great content, thanks for that.
@iseemtobelost8265
@iseemtobelost8265 4 ай бұрын
Mr beast
@Stoney_Eagle
@Stoney_Eagle Жыл бұрын
The match one is new to me, I like it. Much better than a ternary. I ALWAYS use trailing commas, I hate it that it breaks in json and am forced to not have them.
@lahoucineoldakdim7778
@lahoucineoldakdim7778 Жыл бұрын
Awesome tuto. Can you share us how to create a Router class that maps the incoming request URL to a specific controller method. 😚
@saygonow
@saygonow Жыл бұрын
That Sounds like Model, View Control (MVC) I'm interested on that also 🙂
@Stoney_Eagle
@Stoney_Eagle Жыл бұрын
Sign me up too 🤘
@cryptoknight7256
@cryptoknight7256 Жыл бұрын
just excellent!
@AxxionMarketPlace-iu6ri
@AxxionMarketPlace-iu6ri 10 ай бұрын
Thank you
@henrywalker9057
@henrywalker9057 Жыл бұрын
Hi Dani thnx alot for the gud work ur doing to help we young developers with the required knowledge and skills , we really appreciate and may the almighty God reward u abundantly
@hellofromiqbal
@hellofromiqbal 3 ай бұрын
You look like Elon Musk for a quick glance lol. Nice tutorials by the way. Thanks!
@millannyimbili9608
@millannyimbili9608 10 ай бұрын
Dani Hope You are having a good time. Can you teach on how to write an Api with vanilla PHP?
@davidmolina4077
@davidmolina4077 3 ай бұрын
Amazing job man! 😮 Your aim and conciseness to explain everything is admirable, I understood concepts that in JavaScript wasn't fully getting in an easy and clear way. Thank you so much for the effort on putting this quality content out there🙏 One question tho: Would it be possible to check for a range of numbers? For example in the case of something like this but well written: $result = match($a) { [1-20], [30-40] => "You lose", [21-29] => "You win", };
@Dani_Krossing
@Dani_Krossing 3 ай бұрын
Thank you 😊 Here are a few ways you can do what you asked: $number = 25; switch ($number) { case ($number >= 1 && $number = 30 && $number = 21 && $number = 1 && $number = 30 && $number
@davidmolina4077
@davidmolina4077 3 ай бұрын
@@Dani_Krossing Of course! Seems so obvious now 😂 Thank you so much Dani, you're the real deal, you just gained another devoted follower/student. 🙏 Hope you're having an awesome weekend!
@lilcozygamer
@lilcozygamer Жыл бұрын
FIRST!!!
@heismyke
@heismyke Жыл бұрын
SECOND!!!!!
Always be more smart #shorts
00:32
Jin and Hattie
Рет қаралды 30 МЛН
ОДИН ДЕНЬ ИЗ ДЕТСТВА❤️ #shorts
00:59
BATEK_OFFICIAL
Рет қаралды 6 МЛН
small vs big hoop #tiktok
00:12
Анастасия Тарасова
Рет қаралды 17 МЛН
why are switch statements so HECKIN fast?
11:03
Low Level Learning
Рет қаралды 385 М.
HOW TO MAKE A 2D TOP-DOWN RPG IN UNITY 2023 - TUTORIAL #04 - PLAYER MOVEMENT
22:30
Digital Oddities • GameDev
Рет қаралды 8 М.
In Defence of PHP - Stephen Rees-Carter - NDC Security 2023
59:47
NDC Conferences
Рет қаралды 17 М.
Learn Kotlin in 12 Minutes
12:01
Rahul Pandey
Рет қаралды 310 М.
Руководство по ООП на PHP
34:36
Быть Программистом
Рет қаралды 25 М.
Fastest Way to Learn ANY Programming Language: 80-20 rule
8:24
Sahil & Sarra
Рет қаралды 747 М.
Always be more smart #shorts
00:32
Jin and Hattie
Рет қаралды 30 МЛН