Q. How do you create an associative array in PHP? (A) $arr = array('key' => 'value'); (B) $arr = ['key' => 'value']; (C) Both 1 and 2 (D) $arr = associative('key', 'value'); ποΈ Show Answer π¬ Discuss π Share β‘Menu β Correct Answer: (C) Both 1 and 2 Explanation: PHP allows associative arrays using both array() and [] syntax.