Home » PHP » PHP Arrays » Question
  1. What will be the output of the following PHP code?
    <?php
    $Employee = array ("Ajit", "Abhay", array ("Prayag", "Imroj"),
    "krishana");
    echo (count($Employee, 1));
    ?>
    1. 6
    2. 5
    3. 4
    4. 3
    5. None of these
Correct Option: A

The array entity holding pear and mango is counted as an item, just as its contents are.



Your comments will be displayed only after manual approval.