PHP flow control break statement

不言
Release: 2023-03-25 11:00:01
Original
1365 people have browsed it

This article mainly introduces the break of PHP process control, which has certain reference value. Now I share it with everyone. Friends in need can refer to it.

This article is used for basic purposes. Learners, experts please close this page

It takes 12 minutes to read this article, it is difficult to understand

\n";
}

/* 使用可选参数 */

$i = 0;
while (++$i) {
    switch ($i) {
    case 5:
        echo "At 5
\n"; break 1; /* 只退出 switch. */ case 10: echo "At 10; quitting
\n"; break 2; /* 退出 switch 和 while 循环 */ default: break; } } ?>
Copy after login

Related recommendations :

php process control what is foreach

php process control the for statement

php process control of do-while

The above is the detailed content of PHP flow control break statement. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!