Break multiple level in PHP

Description

The following code shows how to break multiple level.

Example


<?php/*from  w  w  w. jav  a2  s . c  o m*/
  while(TRUE)
  {
    while(TRUE)
    {
      print("This line is printed.");
      break 2;
    }
    print("This line will never be printed.");
  }
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Language Basic »




PHP Introduction
PHP Operators
PHP Statements
Variable
PHP Function Create
Exception
PHP Class Definition