Example of using php loop statement to control break and continue
This article describes how to use php to jump out of the loop break and skip a certain layer of loop continue. For more information, see.This article will show you how to use
a more comprehensive set of PHP tutorials , basic video and some small combat projects, below is the video directoryCD-ROM (i) \php employment Class (I.)CD-ROM (i) \php Technical exchange zone. URLCD-ROM (i) \ "Wisdom Special issue" belongs to it
The following examples illustrate
Break is used to jump out of the current execution loop and no longer executes the loop.
Copy the Code code as follows:
$i = 0;while ($i if ($arr [$i] = = "Stop") {Break}$i + +;}?>
Continue immediately stops
Php process control statement. Php process control statements conditional control statements and cyclic control statements are two basic syntax structures. They are all used to control the program execution process and constitute the main syntax
This article mainly introduces the PHP process control of the continue statement, has a certain reference value, now share to everyone, the need for friends can refer to
This paper tries to use the basic Learning Master, please close this page
This
Example of a switch statement in PHP, Phpswitch statement
Switch is a switching statement, so many friends only know the simple switch switch statement usage, the following tutorial small series for you to introduce the switch usage example.
Only
PHP control statement application. Application of PHP control statements 1. IF statements are an important feature of most languages. they execute program segments based on conditions. PHP's IF statement is similar to C: if (expr) statement, just as
PHP control statement. PHP control statement 1. IF statements are an important feature of most languages. they execute program segments based on conditions. PHP's IF statement is similar to C: if (expr) statement, just as PHP's control statement in
This article provides a detailed analysis of the PHP bounce loop method and the differences between continue, break, and exit. For more information, see
This article provides a detailed analysis of the PHP bounce loop method and the differences
This article describes the use of PHP to jump out of the loop break, and skip a layer of cyclic continue specific usage, with the need for a friend reference.This article leads you to understand the use of break and continue, and their role in
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.