首页 >函数列表 >spl_classes

spl_classes

spl_classes

(PHP 5)

spl_classes返回所有可用的SPL类

说明

array spl_classes ( void )

本函数返回当前所有可用的 SPL 类的数组。

范例

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
)


  • class_implements
  • class_parents
  • class_uses
  • iterator_apply
  • iterator_count
  • iterator_to_array
  • spl_autoload
  • spl_autoload_call
  • spl_autoload_extensions
  • spl_autoload_functions
  • spl_autoload_register
  • spl_autoload_unregister
  • spl_classes
  • spl_object_hash
  • PHP MySQL HTML CSS JavaScript MSSQL AJAX .NET JSP Linux Mac ASP 服务器 SQL jQuery C# C++ java Android IOS oracle MongoDB SQLite wamp 交通频道