convert ***sort builtins to use inout instead of references
[hiphop-php.git] / hphp / test / zend / good / ext / standard / tests / array / locale_sort.php
blob96a6d6cafbcb6883133876792e504cf6bc822146
1 <?hh
2 <<__EntryPoint>>
3 function main_entry(): void {
4 setlocale(LC_ALL, 'fr_FR.ISO8859-1', 'fr_FR');
5 $table = array("AB" => "Alberta",
6 "BC" => "Colombie-Britannique",
7 "MB" => "Manitoba",
8 "NB" => "Nouveau-Brunswick",
9 "NL" => "Terre-Neuve-et-Labrador",
10 "NS" => "Nouvelle-Écosse",
11 "ON" => "Ontario",
12 "PE" => "Île-du-Prince-Édouard",
13 "QC" => "Québec",
14 "SK" => "Saskatchewan",
15 "NT" => "Territoires du Nord-Ouest",
16 "NU" => "Nunavut",
17 "YT" => "Territoire du Yukon");
18 asort(inout $table, SORT_LOCALE_STRING);
19 var_dump($table);