PHP 5.4.31 Released

spl_classes

(PHP 5)

spl_classesRetorna as classes da SPL disponíveis

Descrição

array spl_classes ( void )

Esta função retorna um array com as classes da SPL disponíveis atualmente.

Exemplos

Exemplo #1 Exemplo despl_classes()

<?php

print_r
(spl_classes());

?>

O exemplo acima irá imprimir algo similar à:

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
)

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top