ReflectionExtension::getFunctions
(PHP 5)
ReflectionExtension::getFunctions — Eklenti işlevlerini döndürür
Açıklama
public array ReflectionExtension::getFunctions
( void
)
Eklentide tanımlı işlevleri döndürür.
Değiştirgeler
Bu işlevin değiştirgesi yoktur.
Dönen Değerler
ReflectionFunction nesnelerinden oluşan bir ilişkisel dizi. İşlev isimleri anahtarlara yerleştirilir. Hiç işlev tanımlanmamışsa boş bir dizi döner.
Örnekler
Örnek 1 - ReflectionExtension::getFunctions() örneği
<?php
$dom = new ReflectionExtension('SimpleXML');
print_r($dom->getFunctions());
?>
Yukarıdaki örnek şuna benzer bir çıktı üretir:
Array
(
[simplexml_load_file] => ReflectionFunction Object
(
[name] => simplexml_load_file
)
[simplexml_load_string] => ReflectionFunction Object
(
[name] => simplexml_load_string
)
[simplexml_import_dom] => ReflectionFunction Object
(
[name] => simplexml_import_dom
)
)
There are no user contributed notes for this page.
