1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 19:52:20 +02:00
Files
archived-php-src/test.php
2013-11-17 11:59:21 -02:00

34 lines
389 B
PHP

<?php
class phpdbg {
public function isGreat($greeting = null) {
printf(
"%s: %s\n", __METHOD__, $greeting);
return $this;
}
}
function test() {
$var = 1 + 1;
$var += 2;
$var <<= 3;
$foo = function () {};
$foo();
return $var;
}
$dbg = new phpdbg();
$test = 1;
var_dump(
$dbg->isGreat("PHP Rocks !!"));
test();
echo "it works!\n";
?>