- print_r: documentation ( source)
<?php
interface FF_SubTypes {
const FF = "FlixFling";
const GH = "Grindhouse";
const FR = "FrightFlix";
const KF = "KidsFlix";
const SD = "ScreenDreams";
}
class MyClass implements FF_SubTypes {
private $subs = array();
function __construct() {
$r = new ReflectionObject($this);
print_r($r->getConstants());
}
}
$myClass = new MyClass();
//$reflected = new ReflectionObject($myClass);
//print_r($reflected->getConstants());