array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'function.get-extension-funcs.php', 1 => 'get_extension_funcs', 2 => 'Returns an array with the names of the functions of a module', ), 'up' => array ( 0 => 'ref.info.php', 1 => 'Функції налаштування та отримання інформації про PHP', ), 'prev' => array ( 0 => 'function.get-defined-constants.php', 1 => 'get_defined_constants', ), 'next' => array ( 0 => 'function.get-include-path.php', 1 => 'get_include_path', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/info/functions/get-extension-funcs.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

get_extension_funcs

(PHP 4, PHP 5, PHP 7, PHP 8)

get_extension_funcsReturns an array with the names of the functions of a module

Опис

get_extension_funcs(string $extension): array|false

This function returns the names of all the functions defined in the module indicated by extension.

Параметри

extension

The module name.

Зауваження:

This parameter must be in lowercase.

Значення, що повертаються

Returns an array with all the functions, or false if extension is not a valid extension.

Приклади

Приклад #1 Prints the XML functions

<?php
print_r
(get_extension_funcs("xml"));
?>

Поданий вище приклад виведе щось схоже на:

Array
(
    [0] => xml_parser_create
    [1] => xml_parser_create_ns
    [2] => xml_set_object
    [3] => xml_set_element_handler
    [4] => xml_set_character_data_handler
    [5] => xml_set_processing_instruction_handler
    [6] => xml_set_default_handler
    [7] => xml_set_unparsed_entity_decl_handler
    [8] => xml_set_notation_decl_handler
    [9] => xml_set_external_entity_ref_handler
    [10] => xml_set_start_namespace_decl_handler
    [11] => xml_set_end_namespace_decl_handler
    [12] => xml_parse
    [13] => xml_parse_into_struct
    [14] => xml_get_error_code
    [15] => xml_error_string
    [16] => xml_get_current_line_number
    [17] => xml_get_current_column_number
    [18] => xml_get_current_byte_index
    [19] => xml_parser_free
    [20] => xml_parser_set_option
    [21] => xml_parser_get_option
)

Прогляньте також