[ create a new paste ] login | about

Link: http://codepad.org/tzciEeJN    [ raw code | output | fork ]

PHP, pasted on Aug 26:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

for($i = 0; $i < 10; $i++){
    // dummy loops
    while(1){ 
        while(1){
            break test($i)+1;
            break;
        }
        // Do all the stuff that would normally be in the for loop
        echo $i;
        break;
    }
}

function test($i){
    if($i == 5)
        return 1;
}

?>


Output:
1
012346789


Create a new paste based on this one


Comments: