What will be the output of the following PHP code ?
<?php
$a = array(12, 5, 2);
echo(array_product($a));
?>
<?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.Related Questions on Arrays
A. karnataka 11,35,000
B. 11,35,000
C. population 11,35,000
D. karnataka population
Which function will return true if a variable is an array or false if it is not?
A. this_array()
B. is_array()
C. do_array()
D. in_array()
Join The Discussion