← All built-ins / array_product()
array_product()
array_product(...$args): mixed
Parameters
| Name | Type | Description |
|---|---|---|
| $a | array | array of numbers |
Return value
Product of all values.
Example
echo array_product([2, 3, 4]);
24
| Name | Type | Description |
|---|---|---|
| $a | array | array of numbers |
Product of all values.
echo array_product([2, 3, 4]);
24