<?php class A { protected $_a; const A = 'A'; public function __construct() { $this->_a = $this; } public function printA() { var_dump($this->_a::A); } } $a = new A; $a->printA();
You have javascript disabled. You will not be able to edit any code.