Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the continue statement in php

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces the relevant knowledge of "how to use continue sentences in php". The editor shows you the operation process through an actual case. The operation method is simple, fast and practical. I hope this article "how to use continue sentences in php" can help you solve the problem.

1. Concept

The continue keyword is not as powerful as break, so continue can only stop this loop and enter the next loop, or you can specify how many cycles to jump out of.

two。 Different from break statement

The difference between the continue statement and the break statement is that the former ends the execution of this loop and starts the execution of the next loop, while the latter is used to terminate the current loop and jump out of the loop body.

3. Example

Public class ContinueNull {public static void main (String [] args) {/ / continue jump statement / / unlabeled jump System.out.println

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report