fork(5) download
  1. <?php
  2.  
  3. $countries = array(
  4. "af" => "Afghanistan",
  5. "ax" => "Åland Islands",
  6. "al" => "Albania",
  7. "dz" => "Algeria"
  8. );
  9.  
  10. $as = "American Samoa";
  11. $ad = "Andorra";
  12.  
  13. $countries = compact('as', 'ad') + $countries;
  14. print_r($countries);
  15.  
Success #stdin #stdout 0.02s 13064KB
stdin
Standard input is empty
stdout
Array
(
    [as] => American Samoa
    [ad] => Andorra
    [af] => Afghanistan
    [ax] => Åland Islands
    [al] => Albania
    [dz] => Algeria
)