PHP get_declared_classes() function

Description

get_declared_classes() returns an array of all classes of which you can currently create an object.

Syntax

array get_declared_classes ( void )

Return Values

Returns an array of the names of the declared classes in the current script.

Example

Get the declared classes


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

The code above generates the following result.





















Home »
  PHP Tutorial »
    Function reference »




PHP Array Functions
PHP Calendar Functions
PHP Class Functions
PHP Data Type Functions
PHP Date Functions
PHP File Functions
PHP Image Functions
PHP Math Functions
PHP MySQLi Functions
PHP SimpleXML Functions
PHP String Functions
PHP XML Functions
PHP Zip Functions