<?php class test1 { const a = 'b', b = 'a', c = 'c'; public function __construct() { echo self::b, self::a, self::c, PHP_EOL; } } class test2 { private $a = 'b', $b = 'a', $c = 'c'; } try { new test1; // abc echo test2::$b, test2::$a, test2::$c; // Cannot access private property test2::$b } catch (Error $e) { echo $e->getMessage(); }
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`