(PHP 5, PHP 7, PHP 8)
ReflectionExtension::getFunctions — 獲取擴展中的函數
獲取擴展中定義的函數。
此函數沒有參數。
返回一個ReflectionFunction對象數組,數組索引為函數名。如果擴展中沒有定義函數,將返回空數組。
示例 #1 ReflectionExtension::getFunctions() example
<?php
$dom = new ReflectionExtension('SimpleXML');
print_r($dom->getFunctions());
?>
以上例程的輸出類似于:
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 ) )