PHP Loops (Practice Coding) | Learning PHP 2023

Pubblicato il: 12 marzo 2023
sul canale di: RaymondT
82
0

Hi guys! Welcome to my channel RaymondT.

PHP Loops
Loops are used to execute the same block of code again and again, as long as a certain condition is true.
In PHP, we have the following loop types:
while - loops through a block of code as long as the specified condition is true
do...while - loops through a block of code once, and then repeats the loop as long as the specified condition is true
for - loops through a block of code a specified number of times
foreach - loops through a block of code for each element in an array.

PHP Break and Continue
The break statement ends the execution of the current for, foreach, while, do-while or switch structure.
The continue statement breaks one iteration (in the loop), and continues with the next iteration.


Just keep practicing and never stop learning.
Thank you for watching.


In questa pagina del sito puoi guardare il video online PHP Loops (Practice Coding) | Learning PHP 2023 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato RaymondT 12 marzo 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 82 volte e gli è piaciuto 0 spettatori. Buona visione!