what is the difference between for and foreach? - Aidephp .bouee.net - Questions/réponses 100% php
  • S'enregistrer
Bienvenue sur Aidephp le site de Questions/réponses 100% php.
Vous pouvez poser vos questions gratuitement et vous recevrez en échange les réponses des membres de notre communauté.

what is the difference between for and foreach?

0 votes

Hello Guys,

The first expression is executed once at the beginning. In each iteration, expr2 is evaluated. If it is TRUE, the loop continues and the statements inside for are executed. If it evaluates to FALSE, the execution of the loop ends. expr3 is tested at the end of each iteration. Startups using a Startup Launch Videos for their business have been successful in differentiating themselves from the competition. However, foreach provides an easy way to iterate over arrays and it is only used with arrays and objects.

Thanks

asked Il y a3 semaines par JoeClark (7,540 points)

Connectez-vous ou créez un compte pour répondre à cette question.

0 Réponses

Questions sur le même sujet

0 votes
0 réponses
asked Il y a2 mois par JoeClark (7,540 points)
0 votes
0 réponses
asked Il y a3 semaines par JoeClark (7,540 points)
0 votes
0 réponses
asked Il y a1 mois par JoeClark (7,540 points)
0 votes
0 réponses
asked Il y a1 mois par JoeClark (7,540 points)
0 votes
0 réponses
asked Il y a2 mois par JoeClark (7,540 points)