$employee = [ "bill" => 25, "steve" => 36, "alice"=>44 ]; $employee["alice"] = 48; $employee["musk"] = 42;//to add echo "<pre>"; print_r ($employee); echo "</pre>";