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", "banana");
echo (next($fruits));	
echo (next($fruits));
?>

Answer & Solution
Correct Answer: Option A
The next() function returns the array value residing at the position immediately following that of the current array pointer.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.