(PHP 5, PHP 7, PHP 8)
spl_classes — 返回所有可用的SPL類
本函數(shù)返回當(dāng)前所有可用的 SPL 類的數(shù)組。
此函數(shù)沒有參數(shù)。
Returns an array containing the currently available SPL classes.
示例 #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 )