Skip to content

Instantly share code, notes, and snippets.

@Erenor
Last active May 22, 2019 09:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Erenor/61d2e955ab140239fd2ac147b8683917 to your computer and use it in GitHub Desktop.
Save Erenor/61d2e955ab140239fd2ac147b8683917 to your computer and use it in GitHub Desktop.
[PHP] Array of italian provinces (code => label) ordered by province's name, with accents (e.g. "Forlì") and single quotes (e.g. "L'Aquila") where needed
<?php
//we use double quotes to avoid having to escape the single quote within the city of L'Aquila
//accents are not html encoded: use UTF8 to ensure they will not be transformed to something strange
$provinces = array (
'AG' => "Agrigento",
'AL' => "Alessandria",
'AN' => "Ancona",
'AO' => "Aosta",
'AR' => "Arezzo",
'AP' => "Ascoli Piceno",
'AT' => "Asti",
'AV' => "Avellino",
'BA' => "Bari",
'BT' => "Barletta-Andria-Trani",
'BL' => "Belluno",
'BN' => "Benevento",
'BG' => "Bergamo",
'BI' => "Biella",
'BO' => "Bologna",
'BZ' => "Bolzano",
'BS' => "Brescia",
'BR' => "Brindisi",
'CA' => "Cagliari",
'CL' => "Caltanissetta",
'CB' => "Campobasso",
'CI' => "Carbonia-Iglesias",
'CE' => "Caserta",
'CT' => "Catania",
'CZ' => "Catanzaro",
'CH' => "Chieti",
'CO' => "Como",
'CS' => "Cosenza",
'CR' => "Cremona",
'KR' => "Crotone",
'CN' => "Cuneo",
'EN' => "Enna",
'FM' => "Fermo",
'FE' => "Ferrara",
'FI' => "Firenze",
'FG' => "Foggia",
'FC' => "Forlì-Cesena",
'FR' => "Frosinone",
'GE' => "Genova",
'GO' => "Gorizia",
'GR' => "Grosseto",
'IM' => "Imperia",
'IS' => "Isernia",
'AQ' => "L'Aquila",
'SP' => "La Spezia",
'LT' => "Latina",
'LE' => "Lecce",
'LC' => "Lecco",
'LI' => "Livorno",
'LO' => "Lodi",
'LU' => "Lucca",
'MC' => "Macerata",
'MN' => "Mantova",
'MS' => "Massa-Carrara",
'MT' => "Matera",
'VS' => "Medio Campidano",
'ME' => "Messina",
'MI' => "Milano",
'MO' => "Modena",
'MB' => "Monza e della Brianza",
'NA' => "Napoli",
'NO' => "Novara",
'NU' => "Nuoro",
'OG' => "Ogliastra",
'OT' => "Olbia-Tempio",
'OR' => "Oristano",
'PD' => "Padova",
'PA' => "Palermo",
'PR' => "Parma",
'PV' => "Pavia",
'PG' => "Perugia",
'PU' => "Pesaro e Urbino",
'PE' => "Pescara",
'PC' => "Piacenza",
'PI' => "Pisa",
'PT' => "Pistoia",
'PN' => "Pordenone",
'PZ' => "Potenza",
'PO' => "Prato",
'RG' => "Ragusa",
'RA' => "Ravenna",
'RC' => "Reggio Calabria",
'RE' => "Reggio Emilia",
'RI' => "Rieti",
'RN' => "Rimini",
'RM' => "Roma",
'RO' => "Rovigo",
'SA' => "Salerno",
'SS' => "Sassari",
'SV' => "Savona",
'SI' => "Siena",
'SR' => "Siracusa",
'SO' => "Sondrio",
'TA' => "Taranto",
'TE' => "Teramo",
'TR' => "Terni",
'TO' => "Torino",
'TP' => "Trapani",
'TN' => "Trento",
'TV' => "Treviso",
'TS' => "Trieste",
'UD' => "Udine",
'VA' => "Varese",
'VE' => "Venezia",
'VB' => "Verbano-Cusio-Ossola",
'VC' => "Vercelli",
'VR' => "Verona",
'VV' => "Vibo Valentia",
'VI' => "Vicenza",
'VT' => "Viterbo",
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment