class a {
const OPERATOR_ID = 0;
public function test(){
echo self::OPERATOR_ID;
echo static::OPERATOR_ID;
}
}
class b extends a {
const OPERATOR_ID = 1;
}
(new b())->test();
by Valeri Tandilashvili
6 months ago
PHP
0
Pro tip: use ```triple backticks around text``` to write in code fences