<?php abstract class TT { abstract public static function xd(); } class Test { public const OK = 0; public const IS_PUBLIC = 1 << 0; public const IS_ABSTRACT = 1 << 1; protected const ASD = 23; private static int $field = 5; public static function &getSomeProperty() { return self::$field; } } $a =& Test::getSomeProperty(); if ($a === 5) { $a = 2; } var_dump(Test::getSomeProperty()); // 2 $test = new Test(); var_dump(Test::OK); var_dump(Test::IS_PUBLIC);
You have javascript disabled. You will not be able to edit any code.