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

  • (A) $a[1]
  • (B) $a[0]
  • (C) $a.1
  • (D) $a.0
πŸ’¬ Discuss
βœ… Correct Answer: (B) $a[0]
Explanation: This question asks about how to access the first element of an array in PHP. Arrays are like lists of data, and each element has a position, called an index.
Explanation by: Gopal Sharma
This question asks about how to access the first element of an array in PHP. Arrays are like lists of data, and each element has a position, called an index.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
125
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Gopal Sharma
Publisher
πŸ“ˆ
94%
Success Rate