<?php class t { const A = 1; function __construct() { $r = new ReflectionClass($this); var_dump($r->hasConstant('A')); } } $t = new t;
You have javascript disabled. You will not be able to edit any code.