PHP Loops Tutorial - Break & Continue Statements - Full PHP 8 Tutorial

PHP Loops Tutorial - Break & Continue Statements - Full PHP 8 Tutorial

Program With Gio

3 года назад

44,968 Просмотров

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


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

@neozes
@neozes - 05.12.2023 17:13

Man! You put every crash-course to shame. You don't even try to deliver one, yet It's more concise and packed with information, than the longest "crash-courses" on YT. It's such a joy, and so well explained, it's really unique. You have a gift, sir! Keep using it!

Ответить
@alexandershnaidman8188
@alexandershnaidman8188 - 27.10.2023 23:07

Very useful lesson

Ответить
@evilservo
@evilservo - 15.10.2023 09:27

Awesome never thought about the performance storing value in a variable helps boast performance cause the value is counted only once

Ответить
@abhijeetbudde7175
@abhijeetbudde7175 - 28.09.2023 12:44

too fast to learn for beginners🥵

Ответить
@marklovesscience5630
@marklovesscience5630 - 19.09.2023 17:31

Amazing course 🎉 thank you gio

Ответить
@ilya_123__
@ilya_123__ - 19.09.2023 07:54

thank you!

Ответить
@naddielsanchez6288
@naddielsanchez6288 - 01.09.2023 18:35

great video! I didnt know a few small things here, interesting!

Ответить
@user-zh2oz9fe4m
@user-zh2oz9fe4m - 16.08.2023 09:35

I like foreach loop in PHP. Thanks a lot for the video!

Ответить
@helpdesk-hpu
@helpdesk-hpu - 31.07.2023 20:29

WoW !!! that's how a programming language should be taught.

Ответить
@Armando-px8hi
@Armando-px8hi - 05.07.2023 22:37

Did not know about implode or json_encode. Another learning today, thanks a lot GIO.I am gonna comment in every video, hopefully that is gonna help you to gain some more famousness.

Ответить
@ballpen9157
@ballpen9157 - 04.05.2023 20:38

all videos have adver tisements. I didn't skip it. you are welcome.

Ответить
@AlexFloppy
@AlexFloppy - 22.04.2023 20:13

I have liked the idea to define functions in for condition not before the loop, but next to start conditions like $i=0, count($array).
And I have question: If I need to change array values in foreach, is it better to change value by reference, or use some default way, like $array[$key] = $newValue;

Ответить
@ilovecoding5242
@ilovecoding5242 - 12.04.2023 05:49

Your vídeos are very great!!

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

Cool! I just came to know that I could use the length of an array just inside the loop in order to improve performance like this, for($i = 0, $len = count($arr);.....) {}.
I always used to define the length outside the loop.

Thank you Gio for such well explained series

Ответить
@omaryahia
@omaryahia - 22.03.2023 00:48

gioo ❤️❤️
Thank you soo much for your excellent astonishing playlist, I can't wait to complete it

I have a request if you may allow me
didn't mean to be seeing personal stuff
it just happened by accident in one video, you had a bookmark about gamification
a subject I really need to learn , because I want to make educational apps like duolingo (simpler of course)

so it would be a dream for me if you one day create a playlist like this, but on gamification

Ответить
@iuvenceyoung3864
@iuvenceyoung3864 - 28.01.2023 23:16

YOU TALKING REALLY FAST, WHATS WRONG

Ответить
@brankoblesicjr.5792
@brankoblesicjr.5792 - 17.01.2023 14:12

Hello :) Great PHP course! I have a question.

$i = 0;
while ($i <= 20) {
$i++;
if ($i % 2 === 0) {
echo $i;
}

}
First time: i=0; i<= 20, if(0 % 2 === 0)... this is true? why then we dont get echo 0 for first time ?? Or number 2 can't fit into 0 either, so it's false?
Second time i = 1, i <= 20, if( 1 % 2 === 0) false
Third time i = 2, i <= 20, if(2 % 2 === 0) true..... echo 2

Ответить
@PasKojiGrize
@PasKojiGrize - 22.12.2022 02:06

best TUTs ever! Thank you so much!

Ответить
@lotuslando1994
@lotuslando1994 - 01.12.2022 13:00

Another brilliant video! You clearly understand the kinds of mistakes that noobies make, so thank you for taking the time to emphasize how to NOT create an infinite loop!
The way you explain the foreach loop is so clear, and showing a few options on how to use them really cements the concept.
You really are very gifted at teaching. Most people seem to forget what it's like to not know anything about a language, or programming. So they omit information because they assume something is quite obvious. You don't make those assumptions, thankfully. :)

Ответить
@AO-ct8js
@AO-ct8js - 08.10.2022 21:54

Why don't you ever use javaScript in $programmingLanguages examples ?)

Ответить
@TomiBorchert
@TomiBorchert - 16.09.2022 16:23

great content, no doubt. For non native english speaker as i am, it is hard to follow ( ear, listening), when talking is fast and there's no "spaces" between sentences. Easier to turn off sound and just watch. Thanks.

Ответить
@prajwalsiwakoti9866
@prajwalsiwakoti9866 - 15.09.2022 07:24

wow did not know.. loop variable lasted and can be used as reference.. so much learning. Thank you man

Ответить
@pozativeteam6266
@pozativeteam6266 - 06.09.2022 23:37

Really helpful content, I appreciate your work and efforts to bring such a great series. Excellent explanation in a short time and to-the-point solution instead of long discussions, time-saving for senior and junior devs also. Thank you so much for helping the community with your efforts, knowledge, and time. May Allah blesses you brother, keep the good work up (y)

Ответить
@swamsaung8155
@swamsaung8155 - 20.08.2022 15:34

You are really awesome bro.
explain every episode with details

Ответить
@letlhogonolosylverstermaak1979
@letlhogonolosylverstermaak1979 - 04.08.2022 14:23

This has to be the best PHP series i have ever watched. Senior PHP Developer and i'm impressed with the amount of learning i'm still doing while watching here. Great videos man. Keep it up.

Ответить
@gincaza1913
@gincaza1913 - 15.07.2022 15:09

thanks a lot, because of your tutorial I made an algorithm that returns the result of some number from the multiplication table, and I did it myself :)

Ответить
@veltive3268
@veltive3268 - 13.07.2022 21:51

Wow, I never knew you can break or continue nested loops so easily. Awesome stuff.

Ответить
@amgedalaa1831
@amgedalaa1831 - 11.07.2022 02:45

i don't know you're just insane please keep up the amazing work ❤

Ответить
@mortezashabanipour6597
@mortezashabanipour6597 - 02.06.2022 00:59

you're excellent, thank you thank you thank you

Ответить
@ahmedmahdy6676
@ahmedmahdy6676 - 28.04.2022 15:40

Impressive!
Very detailed, Informative & Straight-forward!
Keep up the good work!
Thanks!

Ответить
@kenjohnsiosan9707
@kenjohnsiosan9707 - 19.04.2022 02:59

thank u sir

Ответить
@petruciucur
@petruciucur - 17.04.2022 15:53

Amazing Excellent techniques for displaying array into arrays. Thanks !

Ответить
@elhabibbirouk9722
@elhabibbirouk9722 - 09.04.2022 18:13

why do you need to speak with such speed?? Thank you anyway for your videos.

Ответить
@dionissiosnomikos1599
@dionissiosnomikos1599 - 01.02.2022 20:54

Where can i find the source code to the lesson?
Congratulations for the great work!!

Ответить
@redshot2462
@redshot2462 - 09.01.2022 17:41

HOO muito obrigo, ajudou muito.

Ответить
@troyporter2637
@troyporter2637 - 11.11.2021 19:51

Senior dev here watching your series and just had to pause to say great job!. I have learnt a couple hidden gems in a few of your videos thus far.

Ответить
@jessieren6476
@jessieren6476 - 01.09.2021 08:13

The info about 'the last iteration is still accessible after foreach' is very very useful for me. Thank you again sir

Ответить
@yarik83men51
@yarik83men51 - 18.08.2021 19:34

Thx, very nice

Ответить
@askiomen2117
@askiomen2117 - 02.08.2021 04:40

Thank You Soo Much ! You just saved me from endless headache.

Ответить
@nielfernandez8721
@nielfernandez8721 - 30.06.2021 05:11

Awesome Perfect! Thanks, Gio :))

Ответить
@mahmoudmoussa6722
@mahmoudmoussa6722 - 27.06.2021 11:16

Man, that's totally stunning, spectacular...... I can say with clear conscience, it's the best "detailed" php-full Guide online.
Currently I'm watching the whole serie. Please don't stop, even if the num of watchers aren't what u deserve, but soon it's gonna be different.
Just thx man 🎩 off.

Ответить
@mahmudsulemansheikhwunnam3580
@mahmudsulemansheikhwunnam3580 - 02.04.2021 11:48

I personally always use the variable and then increase it again (e.g. echo $i; $i++). How silly :)

Ответить
@henrik9173
@henrik9173 - 18.03.2021 17:39

I just discovered that the variable of the last iteration is still accessible after the foreach loop! 🤯 Thanks for the great explanations. I can't wait for the series to be complete!

Ответить
@kennysparks8942
@kennysparks8942 - 27.02.2021 01:26

This is awesome but how do you break a foreach loop after a certain number of iterations?

Ответить
@MYDev
@MYDev - 20.02.2021 06:45

Really Great explain of PHP Loops, Thank you

Ответить
@rimantasdanilevicius6754
@rimantasdanilevicius6754 - 30.12.2020 21:46

Once again great tutorial where I learned new things. I did not knew that I can use json_encode() to output values.

By the way. If you will talk and use PHP 8 maybe you could make a short tutorial how to update from old version to newest? I googled and found many ways, but then I started to read comments it seems that everyone get some kind errors and their databases phpmyadmin and other with php related problems occurs. That why I still using PHP 7.4 because I think If I will get some errors I will not be able to recover. If you know any safe way to update to latest PHP 8, please share :)

Ответить