The do...while loop in PHP will not execute its block of code if the condition is initially false.

  • TRUE
  • FALSE
  • nan
  • nan
The statement is incorrect. The do...while loop in PHP always executes its block of code at least once, regardless of the initial condition. After the first execution, the condition is checked. If the condition is true, the loop continues to execute. If the condition is false, the loop terminates. This behavior ensures that the code block is executed 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 *