func_get_args <<< |
func_num_args | function_exists >>> |
6.12 Fonctions 6 Référence des fonctions Manuel PHP . Introduction . Pré-requis . Installation . Configuration à l'exécution . Constantes pré-définies . call_user_func_array . call_user_func . create_function . func_get_arg . func_get_args ->func_num_args . function_exists . get_defined_functions . register_shutdown_function . register_tick_function . unregister_tick_function |
6.12.11 func_num_args() Retourne le nombre d'arguments passés à la fonction[ Exemples avec func_num_args ] PHP 4, PHP 5 int func_num_args ( void )func_num_args retourne le nombre d'arguments passés à la fonction utilisateur courante. func_num_args générera une alerte si elle est appelée hors d'une fonction. Cette fonction ne peut être directement utilisée en tant que paramètre d'une fonction. A la place, son résultat peut être assigné à une variable, qui peut être passée à une fonction.
func_get_arg peut être utilisé conjointement à func_num_args et func_get_args pour permettre aux fonctions utilisateurs d'accepter un nombre variable d'arguments. |
<< | func_num_args | >> |
func_get_args | Fonctions | function_exists |