spl_classes

(PHP 5, PHP 7)
Return available SPL classes
array spl_classes ( void )

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

Returns:

Returns an array containing the currently available SPL classes.

Examples:
spl_classes() example
1
2
3
4
5
<?php
 
print_r(spl_classes());
 
?>

The above example will output something similar to:

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
)
doc_php
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.