$value) echo "$key => $value\n"; echo "4Press Enter to continue ... "; $discard = fgets(STDIN); $c = [10, 20, 30]; for ($i = 0; $i"35", "Ben"=>"37", "Joe"=>"43"); foreach($people as $key => $value) echo "Key=$key, Value=$value\n"; foreach($people as $key => $value) echo "Key=$key, Value=$people[$key]\n"; foreach(array_keys($people) as $key) echo "Key=$key, Value=$people[$key]\n"; echo $people["Peter"] . "\n"; echo $people['Ben'] . "\n"; echo $people['Joe'] . "\n"; //This is OK echo "{$people['Joe']}\n"; //And this is OK echo "$people[Joe]\n"; //And so is this OK //echo "$people['Joe']\n"; //But this causes an error echo "6Press Enter to continue ... "; $discard = fgets(STDIN); ?>