L Lê Như Ý New member Sep 20, 2021 #1 What will be the output of the following PHP code? Code: <?php $state = array ("Karnataka", "Goa", "Tamil Nadu", "Andhra Pradesh"); echo (array_search ("Tamil Nadu", $state) ); ?> A. True B. 1 C. False D. 2
What will be the output of the following PHP code? Code: <?php $state = array ("Karnataka", "Goa", "Tamil Nadu", "Andhra Pradesh"); echo (array_search ("Tamil Nadu", $state) ); ?> A. True B. 1 C. False D. 2
T Thanh Thảo New member Sep 20, 2021 #2 Answer: d Explanation: The array_search() function searches an array for a specified value, returning its key if located and FALSE otherwise. Upvote 0 Downvote
Answer: d Explanation: The array_search() function searches an array for a specified value, returning its key if located and FALSE otherwise.