PHP·98 questions

What loops are available in PHP?

Answer
for ($i = 0; $i < 10; $i++).
while (condition).
do...while — at least 1 iteration.
foreach ($arr as $key => $val).
break — exit, continue — next iteration.
Was this answer helpful?

More questions in this topic

Related questions from other topics