File: CallTimePassByReferenceUnitTest.inc

package info (click to toggle)
php-codesniffer 1.3.4-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,092 kB
  • sloc: php: 30,445; xml: 3,768; makefile: 15; pascal: 8; sh: 6
file content (20 lines) | stat: -rw-r--r-- 327 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
class myclass extends yourclass implements someint {
    function myfunc($var) {
        echo $var;
    }
}

$myvar = true;
myfunc(&$myvar);
myfunc($myvar);

$this->myfunc(&$myvar);
$this->myfunc($myvar);

myclass::myfunc(&$myvar);
myclass::myfunc($myvar);

while(testfunc($var1, &$var2, $var3, &$var4) === false) {
}
?>