PHP:
скопировать код в буфер обмена
скопировать код в буфер обмена
- class A{
- public static $static_var = 'this is static var';
- public static function static_method()
- {
- echo 'this is static_method()';
- }
- }
- $obj = new A;
- $obj->static_method();