Construct function
Fermé
Sofia419
Messages postés
8
Date d'inscription
lundi 7 septembre 2015
Statut
Membre
Dernière intervention
28 novembre 2017
-
7 sept. 2015 à 12:49
sofia419 - 8 sept. 2015 à 22:54
sofia419 - 8 sept. 2015 à 22:54
A voir également:
- Construct function
- Unable to load function ft_thunk (kernel32.dll) ✓ - Forum Jeux vidéo
- Call to undefined function mysql_error() - Forum Programmation
- Call to undefined function imagecreatetruecolor() - Forum PHP
- Call to undefined function get_magic_quotes_runtime() - Forum Webmastering
- (Function(){css.removeclass(document.body,%20'profile_two_columns'); tab_controller.changepage("photos");})() - Forum Webmastering
1 réponse
Pitet
Messages postés
2826
Date d'inscription
lundi 11 février 2013
Statut
Membre
Dernière intervention
21 juillet 2022
526
8 sept. 2015 à 11:09
8 sept. 2015 à 11:09
Salut,
Un petit coup d'oeil à la doc :
https://www.php.net/manual/fr/function.func-get-arg.php
https://www.php.net/manual/fr/function.func-num-args.php
func_get_arg() peut être utilisé conjointement à func_get_args() pour permettre aux fonctions utilisateurs d'accepter un nombre variable d'arguments.
Ainsi ta méthode __construct() peut être appelé avec 0, 1 ... ou 7 paramètres.
Bonne journée
Un petit coup d'oeil à la doc :
https://www.php.net/manual/fr/function.func-get-arg.php
https://www.php.net/manual/fr/function.func-num-args.php
func_get_arg() peut être utilisé conjointement à func_get_args() pour permettre aux fonctions utilisateurs d'accepter un nombre variable d'arguments.
Ainsi ta méthode __construct() peut être appelé avec 0, 1 ... ou 7 paramètres.
Bonne journée
8 sept. 2015 à 22:54