πŸ“Š MySQL
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
πŸ’¬ Discuss
βœ… Correct Answer: (B) {2, 1, 4, 3, 7, 9, 6}

Explanation: 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.

Explanation by: Pooja
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.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
101
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Pooja
Publisher
πŸ“ˆ
80%
Success Rate