Get an array with the name of the defined classes in PHP

Description

The following code shows how to get an array with the name of the defined classes.

Example


<?php
print_r(get_declared_classes());
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Development »




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