01 | | 02 | | 03 | | 04 | | 05 | | 06 | | 07 | | 08 | | 09 | | 10 | | 11 | | 12 | | 13 | | 14 | | 15 | | 16 | | 17 | | 18 | | 19 | | 20 | | 21 | | 22 | | 23 | | 24 | | 25 | | 26 | | 27 | | 28 | | 29 | | 30 | | 31 | | 32 | | 33 | | 34 | | 35 | | 36 | | 37 | | 38 | | 39 | | 40 | | 41 | | 42 | | 43 | | 44 | | 45 | | 46 | | 47 | | 48 | | 49 | | 50 | | 51 | | 52 | | 53 | | 54 | | 55 | | 56 | | 57 | | 58 | | 59 | | 60 | | 61 | | 62 | | 63 | | 64 | | 65 | | 66 | | 67 | | 68 | | 69 | | 70 | | 71 | | 72 | | 73 | | 74 | | 75 | | 76 | | 77 | | 78 | | 79 | | 80 | | 81 | | 82 | | 83 | | 84 | | 85 | | 86 | | 87 | | 88 | | 89 | | 90 | | 91 | | 92 | | 93 | | 94 | | 95 | | 96 | | 97 | | 98 | | 99 | | 100 | | 101 | | 102 | | 103 | | 104 | | 105 | | 106 | | 107 | | 108 | | 109 | | 110 | | 111 | | 112 | | 113 | | 114 | | 115 | | 116 | | 117 | | 118 | | 119 | | 120 | | 121 | | 122 | | 123 | | 124 | | 125 | | 126 | | 127 | | 128 | | 129 | | 130 | | 131 | | 132 | | 133 | | 134 | | 135 | | 136 | | 137 | | 138 | | 139 | | 140 | | 141 | | 142 | | 143 | | 144 | | 145 | | 146 | | 147 | | 148 | | 149 | | 150 | | 151 | | 152 | | 153 | | 154 | | 155 | | 156 | | 157 | | 158 | | 159 | | 160 | | 161 | | 162 | | 163 | | 164 | | 165 | | 166 | | 167 | | 168 | | 169 | | 170 | | 171 | | 172 | | 173 | | 174 | | 175 | | 176 | | 177 | | 178 | | 179 | | 180 | | 181 | | 182 | | 183 | | 184 | | 185 | | 186 | | 187 | | 188 | | 189 | | 190 | | 191 | | 192 | | 193 | | 194 | | 195 | | 196 | | 197 | | 198 | | 199 | | 200 | | 201 | | 202 | | 203 | | 204 | | 205 | | 206 | | 207 | | 208 | | 209 | | 210 | | 211 | | 212 | | 213 | | 214 | | 215 | | 216 | | 217 | | 218 | | 219 | | 220 | | 221 | | 222 | | 223 | | 224 | | 225 | | 226 | | 227 | | 228 | | 229 | | 230 | | 231 | | 232 | | 233 | | 234 | | 235 | | 236 | | 237 | | 238 | | 239 | | 240 | | 241 | | 242 | | 243 | | 244 | | 245 | | 246 | | 247 | | 248 | | 249 | |
|
<?php
| /*---------------------------------------------------------------*/
| /*
| Titre : Sous préfecture des départements
|
| URL : https://phpsources.net/code_s.php?id=1005
| Date édition : 15 Fév 2019
| Date mise à jour : 12 Aout 2019
| Rapport de la maj:
| - refactoring du code en PHP 7
| - fonctionnement du code vérifié
| - amélioration du code
| - modification de la description
| */
| /*---------------------------------------------------------------*/
|
| $sous_prefecture = array(
| "Belley" => 1,
| "Gex" => 1,
| "Nantua" => 1,
| "Chà ¢teau-Thierry" => 2,
| "Saint-Quentin" => 2,
| "Soissons" => 2,
| "Vervins" => 2,
| "Montluà§on" => 3,
| "Vichy" => 3,
| "Barcelonnette" => 4,
| "Castellane" => 4,
| "Fortcalquier" => 4,
| "Brianà§on" => 5,
| "Grasse" => 6,
| "Largentière" => 7,
| "Tournon" => 7,
| "Rethel" => 8,
| "Sedan" => 8,
| "Vouzier" => 8,
| "Pamiers" => 9,
| "Saint-Giron" => 9,
| "Bar-sur-Aube" => 10,
| "Nogent-sur-Seine" => 10,
| "Limoux" => 11,
| "Narbonne" => 11,
| "Millau" => 12,
| "Villefranche-de-Rouergue" => 12,
| "Aix-en-Provence" => 13,
| "Arles" => 13,
| "Istres" => 13,
| "Bayeux" => 14,
| "Lisieux" => 14,
| "Vire" => 14,
| "Mauriac" => 15,
| "Saint-Flour" => 15,
| "Cognac" => 16,
| "Confolens" => 16,
| "Jonzac" => 17,
| "Rochefort" => 17,
| "Saint-Jean-d'Angely" => 17,
| "Saintes" => 17,
| "Saint-Amand-Montrond" => 18,
| "Brive-la-Gaillarde" => 19,
| "Ussel" => 19,
| "Sartène" => "2A",
| "Calvi" => "2B",
| "Corte" => "2B",
| "Beaune" => 21,
| "Montbard" => 21,
| "Dinan" => 22,
| "Guingamp" => 22,
| "Lannion" => 22,
| "Aubusson" => 23,
| "Bergerac" => 24,
| "Nontron" => 24,
| "Sarlat-la-Canéda" => 24,
| "Montbéliard" => 25,
| "Pontarlier" => 25,
| "Die" => 26,
| "Nyons" => 26,
| "Les Andelys" => 27,
| "Bernay" => 27,
| "Chà ¢teaudun" => 28,
| "Dreux" => 28,
| "Nogent-le-Rotrou" => 28,
| "Brest" => 29,
| "Chà ¢teaulin" => 29,
| "Morlaix" => 29,
| "Alès" => 30,
| "Le Vigan" => 30,
| "Muret" => 31,
| "Saint-Gaudens" => 31,
| "Condom" => 32,
| "Mirande" => 32,
| "Blaye" => 33,
| "Langon" => 33,
| "Lesparre-Médoc" => 33,
| "Libourne" => 33,
| "Béziers" => 34,
| "Lodève" => 34,
| "Fougères" => 35,
| "Redon" => 35,
| "Saint-Malo" => 35,
| "Issoudun" => 36,
| "Le Blanc" => 36,
| "La Chà ¢tre" => 36,
| "Chinon" => 37,
| "Loches" => 37,
| "La Tour-du-Pin" => 38,
| "Vienne" => 38,
| "Dole" => 39,
| "Saint-Claude" => 39,
| "Dax" => 40,
| "Romorantin-Lanthenay" => 41,
| "Vendà´me" => 41,
| "Montbrison" => 42,
| "Roanne" => 42,
| "Brioude" => 43,
| "Yssingeaux" => 43,
| "Ancenis" => 44,
| "Chà ¢teaubriant" => 44,
| "Saint-Nazaire" => 44,
| "Montargis" => 45,
| "Pithiviers" => 45,
| "Figeac" => 46,
| "Gourdon" => 46,
| "Marmande" => 47,
| "Nérac" => 47,
| "Villeneuve-sur-Lot" => 47,
| "Florac" => 48,
| "Cholet" => 49,
| "Saumur" => 49,
| "Segré" => 49,
| "Avranches" => 50,
| "Cherbourg" => 50,
| "Coutances" => 50,
| "Epernay" => 51,
| "Reims" => 51,
| "Sainte-Menehould" => 51,
| "Vitry-le-Franà§ois" => 51,
| "Langres" => 52,
| "Saint-Dizier" => 52,
| "Chà ¢teau-Gontier" => 53,
| "Mayenne" => 53,
| "Briey" => 54,
| "Lunéville" => 54,
| "Toul" => 54,
| "Commercy" => 55,
| "Verdun" => 55,
| "Lorient" => 56,
| "Pontivy" => 56,
| "Boulay-Moselle" => 57,
| "Chà ¢teau-Salins" => 57,
| "Forbach" => 57,
| "Metz-Campagne" => 57,
| "Chà ¢teau-Chinon" => 58,
| "Clamecy" => 58,
| "Cosne-Cours-sur-Loire" => 58,
| "Avesnes-sur-Helpe" => 59,
| "Cambrai" => 59,
| "Douai" => 59,
| "Dunkerque" => 59,
| "Valenciennes" => 59,
| "Clermont" => 60,
| "Compiègne" => 60,
| "Senlis" => 60,
| "Argentan" => 61,
| "Mortagne-au-Perche" => 61,
| "Béthune" => 62,
| "Boulogne-sur-Mer" => 62,
| "Calais" => 62,
| "Lens" => 62,
| "Montreuil" => 62,
| "Saint-Omer" => 62,
| "Ambert" => 63,
| "Issoire" => 63,
| "Riom" => 63,
| "Thiers" => 63,
| "Bayonne" => 64,
| "Oloron-Sainte-Marie" => 64,
| "Argelès-Gazost" => 65,
| "Bagnères-de-Bigorre" => 65,
| "Céret" => 66,
| "Prades" => 66,
| "Haguenau" => 67,
| "Molsheim" => 67,
| "Saverne" => 67,
| "Célestat-Erstein" => 67,
| "Wissembourg" => 67,
| "Altkirch" => 68,
| "Guebwiller" => 68,
| "Mulhouse" => 68,
| "Ribauvillé" => 68,
| "Thann" => 68,
| "Villefranche-sur-Saà´ne" => 69,
| "Lure" => 70,
| "Autun" => 71,
| "Chà ¢lon-sur-Saà´ne" => 71,
| "Charolles" => 71,
| "Louhan" => 71,
| "La Flèche" => 72,
| "Mamers" => 72,
| "Albertville" => 73,
| "Saint-Jean-de-Maurienne" => 73,
| "Bonneville" => 74,
| "Saint-Julien-en-Genevois" => 74,
| "Thonon-les-Bains" => 74,
| "Dieppe" => 76,
| "Le Havre" => 76,
| "Meaux" => 77,
| "Provins" => 77,
| "Mantes-la-Jolie" => 78,
| "Rambouillet" => 78,
| "Saint-Germain-en-Laye" => 78,
| "Bressuire" => 79,
| "Parthenay" => 79,
| "Abbeville" => 80,
| "Montdidier" => 80,
| "Péronne" => 80,
| "Castres" => 81,
| "Castelsarrasin" => 82,
| "Brignoles" => 83,
| "Draguignan" => 83,
| "Apt" => 84,
| "Carpentras" => 84,
| "Fontenay-le-Comte" => 85,
| "Sables-d'Olonne" => 85,
| "Chatellerault" => 86,
| "Montmorillon" => 86,
| "Bellac" => 87,
| "Rochechouart" => 87,
| "Neufchà ¢teau" => 88,
| "Saint-Dié" => 88,
| "Avallon" => 89,
| "Sens" => 89,
| "Etampes" => 91,
| "Palaiseau" => 91,
| "Antony" => 92,
| "Boulogne-Billancourt" => 92,
| "Le Raincy" => 93,
| "L'Hay-les-Roses" => 94,
| "Nogent-sur-Marne" => 94,
| "Argenteuil" => 95,
| "Montmorency" => 95,
| "Pointe-à -Pitre" => 971,
| "Saint-Martin" => 971,
| "Saint-Barthélémy" => 971,
| "Saint-Laurent-du-Maroni" => 971
| );
| ?>
|
| |
|