PHP Switch Statement - Switch vs if/else statement - Full PHP 8 Tutorial

PHP Switch Statement - Switch vs if/else statement - Full PHP 8 Tutorial

Program With Gio

4 года назад

41,354 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@ShinigamiGrin
@ShinigamiGrin - 14.07.2021 23:59

if (has_comments($video) == false){
echo 'wtf!';
leave_a_comment();
give_thumb_up();
} else {
leave_a_comment_anyway($well_done);
give_thumb_up();
}

if $subscribed !== true{
echo ('seriously?' subscribe already!');
}

Ответить
@yarik83men51
@yarik83men51 - 18.08.2021 21:57

Good job. Don't stop

Ответить
@Timespider
@Timespider - 30.08.2021 05:45

Like how you referred to breaking out of the array, very helpful. Thanks for posting

Ответить
@jessieren6476
@jessieren6476 - 01.09.2021 09:03

I know the real reason why we should use 'break' after watching this video. Thanks

Ответить
@michaeljean3507
@michaeljean3507 - 19.10.2021 03:42

Your lessons are definitely helping me with my php skills. I wish more people would find you. I'll share to as many people as i can.

Ответить
@CarlosOrtiz-sz2pp
@CarlosOrtiz-sz2pp - 11.01.2022 08:30

Thank you

Ответить
@petruciucur
@petruciucur - 17.04.2022 16:41

Just amazing !

Ответить
@kenjohnsiosan9707
@kenjohnsiosan9707 - 19.04.2022 08:14

thank u sir

Ответить
@rafnaf.zeljko
@rafnaf.zeljko - 26.04.2022 21:43

Hvala!

Ответить
@mostafaaminebriere5779
@mostafaaminebriere5779 - 27.04.2022 16:21

great explanation thank you ❤

Ответить
@smartsavage9221
@smartsavage9221 - 29.05.2022 12:04

Your tutorials are really awesome, not just for sake of videos , they are perfectly made with relevant information, great work

Ответить
@mortezashabanipour6597
@mortezashabanipour6597 - 02.06.2022 01:01

thank you thank you thank you thank you thank you thank you , great work excellent,

Ответить
@369-davian
@369-davian - 11.06.2022 01:01

master... god job

Ответить
@marwanak10
@marwanak10 - 26.08.2022 01:11

The only time an if statement is faster than switch is if the if is with ===. Thank you for the video

Ответить
@open-mindedlearners
@open-mindedlearners - 15.10.2022 23:37

Hi Gio, Does continue; works as break; only in switch to avoid infinity.
Thanks

Ответить
@babukicoding
@babukicoding - 28.10.2022 14:52

Thanks for the Amazing course on Php💜

Ответить
@jeffsnow7464
@jeffsnow7464 - 03.11.2022 19:30

Very thorough explanation of the difference between if/else and switch. Nice.

Ответить
@hav_bs0lll
@hav_bs0lll - 18.11.2022 23:01

Awesome your tutorials are the best, thanks a lot

Ответить
@lotuslando1994
@lotuslando1994 - 01.12.2022 14:22

it's never too soon to discuss how to ensure your code is running as efficiently as possible. These computationally expensive examples really make the point clear.
Thank you for always having efficiency top of mind while you teach these concepts.

Ответить
@mukundbhatia
@mukundbhatia - 09.12.2022 13:20

last part explaining switch vs multiple if elseif great insight

Ответить
@mdsohan6968
@mdsohan6968 - 21.01.2023 13:14

thanks a lot for this free course

Ответить
@photoinshot1355
@photoinshot1355 - 22.03.2023 12:12

Very clear, very precise tutorial, thanks!

Ответить
@alnahian2003
@alnahian2003 - 01.04.2023 11:18

This series points me out that how less I know about PHP 😢

The avoiding code duplication tip on switch statement is literally a new thing to me! Glad to have the series ☄️

Ответить
@Armando-px8hi
@Armando-px8hi - 05.07.2023 23:32

Another perfect video, I just love how you explain and then show it with examples that is one of the best parts of your videos.Thanks!

Ответить
@keremardicli4013
@keremardicli4013 - 15.07.2023 00:18

Can you put the list number of each video to their titles? Like: 1.16 Loops

Ответить
@Vitalii-m6r
@Vitalii-m6r - 16.08.2023 09:36

The witch statement is fabulous. Thanks for the video again!

Ответить
@nelsonke6840
@nelsonke6840 - 06.09.2023 13:33

Meaning switch statements run faster than if statements ?>

Ответить
@ilya_123__
@ilya_123__ - 19.09.2023 10:52

thank you!

Ответить
@mnamhie
@mnamhie - 20.10.2023 05:02

Gio, I've said it before but I MUST reiterate it. Your tuts are THE VERY BEST on YT. You are so knowledgeable and you explain everything so thoroughly. I never thought I'd actually love watching a YT tut. But I love yours. And can't wait for the upcoming Laravel tuts. Keep up the great work!

Ответить
@dilhanrasanjana2851
@dilhanrasanjana2851 - 25.05.2024 10:58

Good job & really appreciate 👍

Ответить
@ki6108
@ki6108 - 02.12.2024 10:08

didn't expect to get a great comparison of switch vs if/else performance and the why from a php tutorial, usually people that explain the nitty gritty of this kind of thing are low-level language nerd haha. Nice and very straightforward explanation (even for a beginner like me), btw sir till what chapter should i start moving to learn laravel?.

Ответить
@paola139
@paola139 - 10.01.2025 14:06

Very uselful

Ответить