Q. Which of the following is a correct way to create an associative array?
β
Correct Answer: (A)
$arr = ['name' => 'John', 'age' => 25];
Explanation: Associative arrays use key => value pairs.