<?php class Foo { private const BAR = 42; } $r = new ReflectionClass(Foo::class); var_dump( $r->getReflectionConstants(), $r->getReflectionConstant('BAR')->isPrivate() );
You have javascript disabled. You will not be able to edit any code.