?
What will be the output of the following PHP code?
What will be the output of the following PHP code?
<?php
$fruits = array ("apple", "orange", array ("pear", "mango"), "banana");
echo (count($fruits, 1));
?>
<?php
$fruits = array ("apple", "orange", array ("pear", "mango"), "banana");
echo (count($fruits, 1));
?>
Answer & Solution
Correct Answer:
Option
D
The array entity holding pear and mango is counted as an item, just as its contents are.
Join the Discussion
Login to post a comment or share your explanation.
Login