Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

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

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: b
Explanation: The array_product() function calculates and returns the product of an array.

Join The Discussion