?
What will be the output of the following PHP code ?
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));
?>
Answer & Solution
Correct Answer:
Option
B
The array_product() function calculates and returns the product of an array.
Join the Discussion
Login to post a comment or share your explanation.
Login