Examveda
Examveda

What will be the output of the following PHP code ?
<?php
$a = array(12, 5, 2);
echo(array_product($a));
?>

A. 024

B. 120

C. 010

D. 060

Answer: Option B

Solution(By Examveda Team)

The array_product() function calculates and returns the product of an array.

This Question Belongs to PHP >> Arrays

Join The Discussion

Related Questions on Arrays