The break statement in PHP is used to ______ the execution of the current loop and move to the next iteration.

  • Continue
  • Restart
  • Terminate
  • Pause
The correct option is: "Terminate." The break statement in PHP is used to stop the execution of the current loop and move to the next iteration or the line immediately following the loop. It is commonly used when a certain condition is met, and you want to exit the loop prematurely. Learn more: https://www.php.net/manual/en/control-structures.break.php
Add your answer
Loading...

Leave a comment

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