SPL Funzioni
PHP Manual

spl_classes

(PHP 5)

spl_classesReturn available SPL classes

Descrizione

array spl_classes ( void )

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

Elenco dei parametri

Questa funzione non contiene parametri.

Valori restituiti

Returns an array containing the currently available SPL classes.

Esempi

Example #1 spl_classes() example

<?php

print_r
(spl_classes());

?>

Il precedente esempio visualizzerĂ  qualcosa simile a:

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
)


SPL Funzioni
PHP Manual