. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
|
|
array_product
array_product (PHP 5 >= 5.1.0RC1) array_product -- Calcule le produit des valeurs du tableau Descriptionnumber array_product ( array array )
array_product() retourne le produit des
valeurs du tableau array, sous forme
d'un entier ou d'un nombre à virgule flottante.
Exemple 1. Exemple avec array_product()
$a = array(2, 4, 6, 8); echo "produit(a) = " . array_product($a) . "\n";
|
L'exemple ci-dessus va afficher : |
Retour au chapitre Php
|
|