2008-01-05から1日間の記事一覧
PHP5限定ですが、Reflectionでどうでしょうか? get_defined_constants()やget_class_vars()などでは取得できないので、、無理っぽい。以下、サンプルです。 $ cat Reflection_getConstants.php getConstants()); $class = new ReflectionClass('DateTime…
PHP5限定ですが、Reflectionでどうでしょうか? get_defined_constants()やget_class_vars()などでは取得できないので、、無理っぽい。以下、サンプルです。 $ cat Reflection_getConstants.php getConstants()); $class = new ReflectionClass('DateTime…