-
What will be the output of the following PHP code ?
<?php
$Car = array("J" => "Jaguar", "L" => "Land Rover", "A" => "Audi", "M" => "Maseratti");
echo array_search("Maseratti", $Car);
?>
-
- J
- L
- A
- M
- None of these
Correct Option: D
The array_search() function searches for the element and returns the key of that element.