ExamVeda
Login
Home
This question belongs to PHP Arrays
Arrays
?

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

Answer & Solution
Correct Answer: Option C
The array_search() function searches for the element and returns the key of that element.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.