create_function <<< |
func_get_arg | func_get_args >>> |
7.34 Fonctions 7 Index des fonctions Manuel PHP . Introduction . Pré-requis . Installation . Configuration à l'exécution . Constantes prédefinies . 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 |
7.34.9 func_get_arg() Retourne un élément de la liste des arguments[ Exemples avec func_get_arg ] PHP 4 mixed func_get_arg ( int arg_num )func_get_arg retourne l'argument à la position arg_num dans la liste d'argument d'une fonction utilisateur. Les arguments sont comptés en commençant à zéro. func_get_arg générera une alerte si elle est appelée hors d'une fonction. Si arg_num est plus grand que le nombre d'arguments passés, une alerte est générée et la fonction retourne FALSE .
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_get_arg | >> |
create_function | Fonctions | func_get_args |