Is there a jump function between php code? Not jump between pages

Source: Internet
Author: User
Is there a jump function between php code ?? It's not a page jump. Is there a jump function between php code ?? Not jump between pages, for example: $ str; & nbsp; $ aarray (,); $ barray (,); $ i0; foreach ($ a & nbsp; as & nbsp; $ value) {& nbsp; & nbs do you have a jump function between php code ?? Not jump between pages
Is there a jump function between php code ?? Not jump between pages

For example:

$ Str = "";
$ A = array (1, 2, 3, 4, 5, 6 );
$ B = array );
$ I = 0;
Foreach ($ a as $ value ){
If ($ a [$ I] <$ B [$ I]) {
// If the conditions are met, exit the loop and directly execute the final output "data has a problem ";
} Else {
$ Str = "aaaa =". $ a [$ I];
}
$ I ++;
}

Echo "data problems ";
------ Solution ----------------------

...
If ($ a [$ I] <$ B [$ I]) {
Echo "data has problems"; // if conditions are met, exit the loop and execute the final output directly. "data has problems ";
Exit ();
}
...

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.