Single Choice
Not Set
QWhat will be the output of the following PHP code?
< ?php
$state = array ("Karnataka", "Goa", "Tamil Nadu",
"Andhra Pradesh");
echo (array_search ("Tamil Nadu", $state) );
?>
ID: #2385
Arrays in PHP MCQ
893 views
Question Info
#2385Q ID
Not SetDifficulty
Arrays in PHP MCQTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
The array_search() function searches an array for a specified value, returning its key if located and FALSE otherwise.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic