En affectant une valeur par défaut au paramètre optionnel dans la déclaration de ta fonction :
Code :
function maFonctionDeLaMort(parametre, paramOptionnel = 0)
--------------- Everyone thinks of changing the world, but no one thinks of changing himself | It is the peculiar quality of a fool to perceive the faults of others and to forget his own | Early clumsiness is not a verdict, it’s an essential ingredient.
Marsh Posté le 23-10-2002 à 23:02:47
salut,
je voudrais avoir une fonction qui a 2 paramètres en entrée, mais le deuxième est optionnel.
c possible ? comment faire ?
---------------
Ma galerie photo créée avec Piwigo et hébergée sur Piwigo.com