CakeFest 2024: The Official CakePHP Conference

get_extension_funcs

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

get_extension_funcs Restituisce una matrice con i nomi delle funzioni di un modulo

Descrizione

get_extension_funcs(string $module_name): array

Questa funzione restituisce i nomi di tutte le funzioni definite all'interno del modulo indicato da module_name.

Nota:

Il parametro module_name deve essere in minuscolo.

Ad esempio, il seguente comando:

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

visualizzerà l'elenco delle funzioni definite nei moduli xml e gd.

Vedere anche: get_loaded_extensions()

add a note

User Contributed Notes 1 note

up
5
JM
17 years ago
FALSE is returned if there are no functions in that extension. For example, <?php get_extension_funcs("xmlreader"); ?> returns FALSE because that extension defines the XMLReader class but not functions.
To Top