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?

  1. while
  2. do...while
  3. for
  4. 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.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.