Subversion Repositories Applications.framework

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5 aurelien 1
<?php
2
 
3
function foo($a, $b) {
4
    return $a * 2;
5
}
6
 
7
function baz($a, $b) {
8
    echo "baz({$a});";
9
}
10
 
11
function bar($a, $b) {
12
    $x = $b;
13
    for ($i = 0; $i <$a; $i++) {
14
        $x += $a * $i;
15
    }
16
    return $x;
17
}
18
 
19
function foobar($a, &$b) {
20
    return (preg_match('/foo/', $a, $b) !== 0);
21
}
22
 
23
class Foo {
24
    function barfoo($a, $b) {
25
        // Empty body means interface method in many cases.
26
    }
27
}