Open In App

Web technologies Questions | PHP Quiz | Set-2 | Question 2

What is the output of the following code snippets: <?php
$output = array(3, 3, 3);
echo array_product($a);
?>

(A) 8
(B) 27
(C) 10
(D) 6

Answer: (B)
Explanation: The array_product methods in PHP are used to calculate the product of arrays, So the given values are 3,3,3, and the product of the given value is 27.
Quiz of this Question
Please comment below if you find anything wrong in the above post

Article Tags :