File: fortest

package info (click to toggle)
php3 3%3A3.0.18-31
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 17,860 kB
  • ctags: 11,260
  • sloc: ansic: 108,487; sh: 2,439; php: 2,024; yacc: 1,887; makefile: 1,056; perl: 537; pascal: 238; awk: 90; cpp: 28; sql: 11
file content (29 lines) | stat: -rw-r--r-- 389 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?

function hey (
  for ($i=0; $i<10; $i++) {
    if ($i<3) {
      continue;
    }
    if ($i>7) {
      break;
    }
    echo "i=$i\n";
    for ($j=0; $j<10; $j++) {
      if ($j<3) {
        continue;
      }
      if ($j>7) {
        break; 
      }
      echo "j=$j\n";
    }
  }
);


for ($i=0; $i<5; $i++) {
  echo "Before call, i=$i...\n";
  hey();
  echo "After call, i=$i\n";
}