Vidyalelo
PHP · Q6

Arrays

Programming · PHP · question 6

Q6

What will be the output of the following PHP code?

A.
True
B.
1
C.
False
D.
2
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
The array_search() function searches an array for a specified value, returning its key if located and FALSE otherwise.