The continue statement in PHP is used to ______ the current iteration of a loop and move the program control to the next iteration.
- Skip
- Terminate
- Pause
- Restart
The correct option is: "Skip." The continue statement in PHP is used to skip the remaining code in the current iteration of a loop and move the program control to the next iteration. It allows you to bypass certain iterations based on a condition. Learn more: https://www.php.net/manual/en/control-structures.continue.php
Loading...
Related Quiz
- You need to extract a part of a string in your PHP script. How would you do this using Regular Expressions in PHP?
- To execute a query in a MySQL database using PHP, you can use the mysqli_query function like $result = mysqli_query($conn, ______);.
- How do you use Regular Expressions in PHP?
- In PHP forms, you can validate an email field using the filter_var() function with FILTER_VALIDATE_EMAIL as the ______.
- What is the main difference between require() and require_once()?