Vidyalelo
PHP · Q23

Arrays

Programming · PHP · question 23

Q23

What will be the output of the following PHP code ? "Jaguar", "b" => "Land Rover", "c" => "Audi", "d" => "Maseratti"); echo array_search("Audi", a); ?>

A.
a
B.
b
C.
c
Answer
D.
d

Answer: Option C

Solution

Answer: Option C
Solution:
The array_search() function searches for the element and returns the key of that element.