"/>
Home / CSE MCQs / PHP MCQs :: Discussion

Discussion :: PHP MCQs

  1. What will be the output of the following PHP code?
    < ?php      $state = array ("Karnataka", "Goa", "Tamil Nadu",     "Andhra Pradesh");     echo (array_search ("Tamil Nadu", $state) ); ?>
  2. A.
    True
    B.
    1
    C.
    False
    D.
    2

    View Answer

    Workspace

    Answer : Option D

    Explanation :

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


Be The First To Comment