Home » MYSQL » Data Types » Question
  1. If $a represents an array with numeric indices in PHP, the first element accessed by ______________.
    1. $a.0
    2. $a.1
    3. $a[1].
    4. $a[0].
    5. None of these
Correct Option: D

If $a represents an array with numeric indices, its elements are accessed as $x[0], $x[1], and so on. In general terms, each element at the position i is accessed and used as $a[i – 1].



Your comments will be displayed only after manual approval.