The break statement in PHP is used to ______ the current loop and move the program control to the line immediately following the loop.

  • Skip
  • Terminate
  • Pause
  • Restart
The correct option is: "Terminate." The break statement in PHP is used to terminate the current loop and move the program control to the line immediately following the loop. It is commonly used when a specific condition is met, and you want to exit the loop entirely. 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 *