The do...while loop in PHP tests the condition before executing the block of code.

  • TRUE
  • FALSE
  • nan
  • nan
The statement is incorrect. The do...while loop in PHP executes the block of code at least once, and then checks the condition. If the condition is true, the loop continues to execute the block of code again. If the condition is false, the loop terminates. Unlike other loops, the do...while loop checks the condition after executing the block of code, ensuring that the code block executes at least once. 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 *