spl_classes

(PHP 5, PHP 7)

spl_classes�������п��õ�SPL��

˵��

spl_classes ( void ) : array

���������ص�ǰ���п��õ� SPL ������顣

����

�˺���û�в�����

����ֵ

Returns an array containing the currently available SPL classes.

����

Example #1 spl_classes() example

<?php

print_r
(spl_classes());

?>

�������̵���������ڣ�

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
)