In a PHP do...while loop, the condition is tested ______ the code block is executed.

  • After
  • Before
  • Along with
  • Within
In a PHP do...while loop, the condition is tested after the code block is executed. This means that the code block is always executed at least once, and then the condition is checked. If the condition evaluates to true, the loop continues to execute. If the condition is false, the loop terminates. The condition is evaluated at the end of each iteration, allowing the code block to execute 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 *