"> What will be the output of the following PHP code?<?php$Student

Home » PHP » PHP Arrays » Question
  1. What will be the output of the following PHP code?
    <?php
    $Student = array ("Ajit", "Rahul", "Ats",
    "Aju");
    echo (array_search ("Aju", $Student) );
    ?>
    1. 1
    2. 2
    3. 3
    4. True
    5. False
Correct Option: C

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



Your comments will be displayed only after manual approval.