ExamVeda
Login
Home
This question belongs to PHP Arrays
Arrays
?

What will be the output of the following PHP code?
<?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.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.