Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
ob_start();
3
    foreach ($request->validators as $validator) {
4
        if ($result === FALSE) {
5
            $valid = FALSE;
6
        }
7
    }
8
ob_end_clean();
9
 
10
ob_start();
11
foreach ($request->validators as $validator) {
12
    if ($result === FALSE) {
13
        $valid = FALSE;
14
    }
15
}
16
ob_end_clean();
17
 
18
ob_start();
19
    foreach ($request->validators as $validator) {
20
        ob_start();
21
        if ($result === FALSE) {
22
            $valid = FALSE;
23
        }
24
        ob_end_clean();
25
    }
26
ob_end_clean();
27
 
28
function myFunction()
29
{
30
    ob_start();
31
        foreach ($request->validators as $validator) {
32
            if ($result === FALSE) {
33
                $valid = FALSE;
34
            }
35
        }
36
    ob_end_clean();
37
 
38
    ob_start();
39
    foreach ($request->validators as $validator) {
40
        if ($result === FALSE) {
41
            $valid = FALSE;
42
        }
43
    }
44
    ob_end_clean();
45
 
46
    ob_start();
47
        foreach ($request->validators as $validator) {
48
            ob_start();
49
            if ($result === FALSE) {
50
                $valid = FALSE;
51
            }
52
            ob_end_clean();
53
        }
54
    ob_end_clean();
55
 
56
}//end myFunction()
57
 
58
foreach ($request->validators as $validator) {
59
    if ($result === FALSE) {
60
          $valid = FALSE;
61
    }//end if
62
}//end foreach
63
 
64
class MyClass
65
{
66
    /**
67
     * Function comment
68
     */
69
    function myFunction()
70
    {
71
        /*
72
            This is a comment
73
            over multiple lines.
74
        */
75
 
76
        $x = array(
77
          '1' => $one,
78
          '2' => $two,
79
         );
80
 
81
        switch ($var) {
82
            case 'one':
83
                echo 'one';
84
            break;
85
            default:
86
                echo 'two';
87
            break;
88
        }//end switch
89
    }//end myFunction()
90
}
91
?>