Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

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

  • Last Updated : 20 Sep, 2021

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

My Personal Notes arrow_drop_up

Start Your Coding Journey Now!