Vidyalelo
PHP · Q36

Arrays

Programming · PHP · question 36

Q36

What will be the output of the following PHP code?

A.
mango
B.
error
Answer
C.
peach
D.
0

Answer: Option B

Solution

Answer: Option B
Solution:
As we are flipping the values, fruits[“apple”] = 1 and so on.