Q. Which of these is a correct way to declare an array in PHP?
β
Correct Answer: (D)
Both 2 and 3
Explanation: PHP supports both array() and [] syntax to declare arrays.