ExamVeda
Login
Home
This question belongs to PHP Arrays
Arrays
?

What will be the output of the following PHP code ?
<?php
$people = array("Peter", "Susan", "Edmund", "Lucy");
echo pos($people);
?>

Answer & Solution
Correct Answer: Option B
The pos() function returns the value of the current element in an array, and since no operation has been done, the current element is the first element.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.