Home »
MCQs »
PHP MCQs
Which loop statement is used to loop through a block of code a specified number of times?
93. Which loop statement is used to loop through a block of code a specified number of times?
- while
- do...while
- for
- foreach
Answer: C) for
Explanation:
In PHP, the for loop statement is used to loop through a block of code a specified number of times.