Complete the code to create an associative array with keys 'name' and 'age'.
$person = array('name' => 'John', 'age' => [1]);
The value for the key 'age' should be a number without quotes to represent an integer.
Complete the code to add a new key 'city' with value 'Paris' to the associative array.
$person['city'] = [1];
String values in PHP must be enclosed in quotes, either single or double.
Fix the error in the associative array creation by completing the code.
$data = array([1] => 'apple', 'b' => 'banana');
Keys in associative arrays must be strings or integers. Strings must be quoted.
Fill both blanks to create an associative array with keys 'x' and 'y' and values 10 and 20.
$coords = array([1] => [2], 'y' => 20);
The key 'x' must be a string with quotes, and the value 10 is a number without quotes.
Fill all three blanks to create an associative array with keys 'first', 'second', 'third' and values 1, 2, 3.
$numbers = array([1] => [2], [3] => 3);
Keys must be strings with quotes, and values are numbers without quotes.