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
Loading...
Related Quiz
- The keys in a PHP associative array can be both strings and integers.
- The do...while loop in PHP will execute a block of code once, and then continue executing it as long as the ______ is true.
- Which function gives us the number of affected entries by a query?
- Which of the following are ways to handle cookies in PHP?
- What is the purpose of the mysqli_connect() function in PHP?