PHP 8.1.31 Released!

spl_classes

(PHP 5, PHP 7, PHP 8)

spl_classesReturn available SPL classes

Açıklama

spl_classes(): array

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

Bağımsız Değişkenler

Bu işlevin bağımsız değişkeni yoktur.

Dönen Değerler

Returns an array containing the currently available SPL classes.

Örnekler

Örnek 1 spl_classes() example

<?php

print_r
(spl_classes());

?>

Yukarıdaki örnek şuna benzer bir çıktı üretir:

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.
To Top