The do...while loop in PHP will execute a block of code once, and then continue executing it as long as the ______ is true.

  • Condition
  • Code block
  • Iterator
  • Loop variable
The do...while loop in PHP will execute a block of code once, and then continue executing it as long as the condition is true. The condition is tested at the end of the loop, after executing the code block. If the condition evaluates to true, the loop continues to execute. If the condition is false, the loop terminates. The do...while loop guarantees that the code block is executed at least once before checking the condition for further iterations. Learn more: https://www.php.net/manual/en/control-structures.do.while.php
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *