spl_classes

(PHP 5, PHP 7)

spl_classesReturn available SPL classes

Beschreibung

spl_classes ( void ) : array

This function returns an array with the current available SPL classes.

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

Returns an array containing the currently available SPL classes.

Beispiele

Beispiel #1 spl_classes() example

<?php

print_r
(spl_classes());

?>

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

Array
(
    [ArrayObject] => ArrayObject
    [ArrayIterator] => ArrayIterator
    [CachingIterator] => CachingIterator
    [RecursiveCachingIterator] => RecursiveCachingIterator
    [DirectoryIterator] => DirectoryIterator
    [FilterIterator] => FilterIterator
    [LimitIterator] => LimitIterator
    [ParentIterator] => ParentIterator
    [RecursiveDirectoryIterator] => RecursiveDirectoryIterator
    [RecursiveIterator] => RecursiveIterator
    [RecursiveIteratorIterator] => RecursiveIteratorIterator
    [SeekableIterator] => SeekableIterator
    [SimpleXMLIterator] => SimpleXMLIterator
)