Vidyalelo
PHP · Q25

Arrays

Programming · PHP · question 25

Q25

What will be the output of the following PHP code ?

A.
Lucy
B.
Peter
Answer
C.
Susan
D.
Edmund

Answer: Option B

Solution

Answer: Option B
Solution:
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.