Q. Which of the following is a correct way to create an array in PHP?
β
Correct Answer: (A)
$arr = array(1, 2, 3);
Explanation: The array() function is used to declare arrays in PHP.