Reflect a class in PHP

Description

The following code shows how to reflect a class.

Example


<pre>//from   ww  w . java  2s.c o m
<?php
Reflection::export(new ReflectionClass('DateTime'));

Reflection::export(new ReflectionClass('DateTimeZone'));
?>
</pre>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Development »




Environment
Error
Hash
Include
Locale
Math
Network
Output
Reflection
PHP Regular Expressions