spl_classes
(PHP 5, PHP 7, PHP 8)
spl_classes — 利用可能な SPL クラスを返す
パラメータ
この関数にはパラメータはありません。
戻り値
現在利用可能な SPL クラスを配列で返します。
例
例1 spl_classes() の例
<?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 )
+add a note
User Contributed Notes
There are no user contributed notes for this page.
↑ and ↓ to navigate •
Enter to select •
Esc to close
Press Enter without
selection to search using Google