A

Admin • 833K Points
Coach

Q. In PHP, how is the first element accessed if $a represents an array with numeric indices?

  • (A) $a[1]
  • (B) {2, 1, 4, 3, 7, 9, 6}
  • (C) $a.1
  • (D) $a.0
  • Correct Answer - Option(B)
  • Views: 21
  • Filed under category MySQL
  • Hashtags:

Explanation by: Admin

This question is asking about how to access the very first item in an array called "$a". Arrays in PHP are like lists, and each item has a number called an index. These indices start from zero.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.