Home » PHP » PHP Arrays » Question
  1. What will be the output of the following PHP code ?
    <?php
    $num = array(2, 15, 20, 1);
    echo(array_product($num));
    ?>
    1. 2
    2. 15
    3. 20
    4. 1
    5. 600
Correct Option: E

The array_product() function calculates and returns the product of an array.



Your comments will be displayed only after manual approval.