mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
20 lines
216 B
PHP
20 lines
216 B
PHP
<?php
|
|
|
|
class Foo {
|
|
|
|
const c = 'CONSTANT';
|
|
|
|
public function __construct() {
|
|
$self->x = 1;
|
|
$self->y = 2;
|
|
}
|
|
|
|
public static function members() {
|
|
return array('x', 'y');
|
|
}
|
|
}
|
|
|
|
$foo = new Foo;
|
|
$foo
|
|
|
|
?>
|