Recherche :

PHP – Tableau des départements français

Voici qui devrait ravir certain développeur, la liste des départements français listés dans un tableau en PHP. 3 présentations au choix, attention c’est long, voici une présentation, les 2 autres dans la suite de l’article.

1
2
3
4
5
6
7
8
9
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
// présentation 1
$depts = array();
$depts["01"] = "01 - Ain";
$depts["02"] = "02 - Aisne";
$depts["03"] = "03 - Allier";
$depts["04"] = "04 - Alpes de Haute Provence";
$depts["05"] = "05 - Hautes Alpes";
$depts["06"] = "06 - Alpes Maritimes";
$depts["07"] = "07 - Ardèche";
$depts["08"] = "08 - Ardennes";
$depts["09"] = "09 - Ariège";
$depts["10"] = "10 - Aube";
$depts["11"] = "11 - Aude";
$depts["12"] = "12 - Aveyron";
$depts["13"] = "13 - Bouches du Rhône";
$depts["14"] = "14 - Calvados";
$depts["15"] = "15 - Cantal";
$depts["16"] = "16 - Charente";
$depts["17"] = "17 - Charente Maritime";
$depts["18"] = "18 - Cher";
$depts["19"] = "19 - Corrèze";
$depts["2A"] = "2A - Corse du Sud";
$depts["2B"] = "2B - Haute Corse";
$depts["21"] = "21 - Côte d'Or";
$depts["22"] = "22 - Côtes d'Armor";
$depts["23"] = "23 - Creuse";
$depts["24"] = "24 - Dordogne";
$depts["25"] = "25 - Doubs";
$depts["26"] = "26 - Drôme";
$depts["27"] = "27 - Eure";
$depts["28"] = "28 - Eure et Loir";
$depts["29"] = "29 - Finistère";
$depts["30"] = "30 - Gard";
$depts["31"] = "31 - Haute Garonne";
$depts["32"] = "32 - Gers";
$depts["33"] = "33 - Gironde";
$depts["34"] = "34 - Hérault";
$depts["35"] = "35 - Ille et Vilaine";
$depts["36"] = "36 - Indre";
$depts["37"] = "37 - Indre et Loire";
$depts["38"] = "38 - Isère";
$depts["39"] = "39 - Jura";
$depts["40"] = "40 - Landes";
$depts["41"] = "41 - Loir et Cher";
$depts["42"] = "42 - Loire";
$depts["43"] = "43 - Haute Loire";
$depts["44"] = "44 - Loire Atlantique";
$depts["45"] = "45 - Loiret";
$depts["46"] = "46 - Lot";
$depts["47"] = "47 - Lot et Garonne";
$depts["48"] = "48 - Lozère";
$depts["49"] = "49 - Maine et Loire";
$depts["50"] = "50 - Manche";
$depts["51"] = "51 - Marne";
$depts["52"] = "52 - Haute Marne";
$depts["53"] = "53 - Mayenne";
$depts["54"] = "54 - Meurthe et Moselle";
$depts["55"] = "55 - Meuse";
$depts["56"] = "56 - Morbihan";
$depts["57"] = "57 - Moselle";
$depts["58"] = "58 - Nièvre";
$depts["59"] = "59 - Nord";
$depts["60"] = "60 - Oise";
$depts["61"] = "61 - Orne";
$depts["62"] = "62 - Pas de Calais";
$depts["63"] = "63 - Puy de Dôme";
$depts["64"] = "64 - Pyrénées Atlantiques";
$depts["65"] = "65 - Hautes Pyrénées";
$depts["66"] = "66 - Pyrénées Orientales";
$depts["67"] = "67 - Bas Rhin";
$depts["68"] = "68 - Haut Rhin";
$depts["69"] = "69 - Rhône";
$depts["70"] = "70 - Haute Saône";
$depts["71"] = "71 - Saône et Loire";
$depts["72"] = "72 - Sarthe";
$depts["73"] = "73 - Savoie";
$depts["74"] = "74 - Haute Savoie";
$depts["75"] = "75 - Paris";
$depts["76"] = "76 - Seine Maritime";
$depts["77"] = "77 - Seine et Marne";
$depts["78"] = "78 - Yvelines";
$depts["79"] = "79 - Deux Sèvres";
$depts["80"] = "80 - Somme";
$depts["81"] = "81 - Tarn";
$depts["82"] = "82 - Tarn et Garonne";
$depts["83"] = "83 - Var";
$depts["84"] = "84 - Vaucluse";
$depts["85"] = "85 - Vendée";
$depts["86"] = "86 - Vienne";
$depts["87"] = "87 - Haute Vienne";
$depts["88"] = "88 - Vosges";
$depts["89"] = "89 - Yonne";
$depts["90"] = "90 - Territoire de Belfort";
$depts["91"] = "91 - Essonne";
$depts["92"] = "92 - Hauts de Seine";
$depts["93"] = "93 - Seine St Denis";
$depts["94"] = "94 - Val de Marne";
$depts["95"] = "95 - Val d'Oise";
$depts["97"] = "97 - DOM";

1
2
3
4
5
6
7
8
9
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
// présentation 2
$depts = array();
$depts["01"] = "Ain (01)";
$depts["02"] = "Aisne (02)";
$depts["03"] = "Allier (03)";
$depts["04"] = "Alpes de Haute Provence (04)";
$depts["05"] = "Hautes Alpes (05)";
$depts["06"] = "Alpes Maritimes (06)";
$depts["07"] = "Ardèche (07)";
$depts["08"] = "Ardennes (08)";
$depts["09"] = "Ariège (09)";
$depts["10"] = "Aube (10)";
$depts["11"] = "Aude (11)";
$depts["12"] = "Aveyron (12)";
$depts["13"] = "Bouches du Rhône (13)";
$depts["14"] = "Calvados (14)";
$depts["15"] = "Cantal (15)";
$depts["16"] = "Charente (16)";
$depts["17"] = "Charente Maritime (17)";
$depts["18"] = "Cher (18)";
$depts["19"] = "Corrèze (19)";
$depts["2A"] = "Corse du Sud (2A)";
$depts["2B"] = "Haute Corse (2B)";
$depts["21"] = "Côte d'Or (21)";
$depts["22"] = "Côtes d'Armor (22)";
$depts["23"] = "Creuse (23)";
$depts["24"] = "Dordogne (24)";
$depts["25"] = "Doubs (25)";
$depts["26"] = "Drôme (26)";
$depts["27"] = "Eure (27)";
$depts["28"] = "Eure et Loir (28)";
$depts["29"] = "Finistère (29)";
$depts["30"] = "Gard (30)";
$depts["31"] = "Haute Garonne (31)";
$depts["32"] = "Gers (32)";
$depts["33"] = "Gironde (33)";
$depts["34"] = "Hérault (34)";
$depts["35"] = "Ille et Vilaine (35)";
$depts["36"] = "Indre (36)";
$depts["37"] = "Indre et Loire (37)";
$depts["38"] = "Isère (38)";
$depts["39"] = "Jura (39)";
$depts["40"] = "Landes (40)";
$depts["41"] = "Loir et Cher (41)";
$depts["42"] = "Loire (42)";
$depts["43"] = "Haute Loire (43)";
$depts["44"] = "Loire Atlantique (44)";
$depts["45"] = "Loiret (45)";
$depts["46"] = "Lot (46)";
$depts["47"] = "Lot et Garonne (47)";
$depts["48"] = "Lozère (48)";
$depts["49"] = "Maine et Loire (49)";
$depts["50"] = "Manche (50)";
$depts["51"] = "Marne (51)";
$depts["52"] = "Haute Marne (52)";
$depts["53"] = "Mayenne (53)";
$depts["54"] = "Meurthe et Moselle (54)";
$depts["55"] = "Meuse (55)";
$depts["56"] = "Morbihan (56)";
$depts["57"] = "Moselle (57)";
$depts["58"] = "Nièvre (58)";
$depts["59"] = "Nord (59)";
$depts["60"] = "Oise (60)";
$depts["61"] = "Orne (61)";
$depts["62"] = "Pas de Calais (62)";
$depts["63"] = "Puy de Dôme (63)";
$depts["64"] = "Pyrénées Atlantiques (64)";
$depts["65"] = "Hautes Pyrénées (65)";
$depts["66"] = "Pyrénées Orientales (66)";
$depts["67"] = "Bas Rhin (67)";
$depts["68"] = "Haut Rhin (68)";
$depts["69"] = "Rhône (69)";
$depts["70"] = "Haute Saône (70)";
$depts["71"] = "Saône et Loire (71)";
$depts["72"] = "Sarthe (72)";
$depts["73"] = "Savoie (73)";
$depts["74"] = "Haute Savoie (74)";
$depts["75"] = "Paris (75)";
$depts["76"] = "Seine Maritime (76)";
$depts["77"] = "Seine et Marne (77)";
$depts["78"] = "Yvelines (78)";
$depts["79"] = "Deux Sèvres (79)";
$depts["80"] = "Somme (80)";
$depts["81"] = "Tarn (81)";
$depts["82"] = "Tarn et Garonne (82)";
$depts["83"] = "Var (83)";
$depts["84"] = "Vaucluse (84)";
$depts["85"] = "Vendée (85)";
$depts["86"] = "Vienne (86)";
$depts["87"] = "Haute Vienne (87)";
$depts["88"] = "Vosges (88)";
$depts["89"] = "Yonne (89)";
$depts["90"] = "Territoire de Belfort (90)";
$depts["91"] = "Essonne (91)";
$depts["92"] = "Hauts de Seine (92)";
$depts["93"] = "Seine St Denis (93)";
$depts["94"] = "Val de Marne (94)";
$depts["95"] = "Val d'Oise (95)";
$depts["97"] = "DOM (97)";
 
// présentation 3
$depts = array();
$depts["01"] = "Ain";
$depts["02"] = "Aisne";
$depts["03"] = "Allier";
$depts["04"] = "Alpes de Haute Provence";
$depts["05"] = "Hautes Alpes";
$depts["06"] = "Alpes Maritimes";
$depts["07"] = "Ardèche";
$depts["08"] = "Ardennes";
$depts["09"] = "Ariège";
$depts["10"] = "Aube";
$depts["11"] = "Aude";
$depts["12"] = "Aveyron";
$depts["13"] = "Bouches du Rhône";
$depts["14"] = "Calvados";
$depts["15"] = "Cantal";
$depts["16"] = "Charente";
$depts["17"] = "Charente Maritime";
$depts["18"] = "Cher";
$depts["19"] = "Corrèze";
$depts["2A"] = "Corse du Sud";
$depts["2B"] = "Haute Corse";
$depts["21"] = "Côte d'Or";
$depts["22"] = "Côtes d'Armor";
$depts["23"] = "Creuse";
$depts["24"] = "Dordogne";
$depts["25"] = "Doubs";
$depts["26"] = "Drôme";
$depts["27"] = "Eure";
$depts["28"] = "Eure et Loir";
$depts["29"] = "Finistère";
$depts["30"] = "Gard";
$depts["31"] = "Haute Garonne";
$depts["32"] = "Gers";
$depts["33"] = "Gironde";
$depts["34"] = "Hérault";
$depts["35"] = "Ille et Vilaine";
$depts["36"] = "Indre";
$depts["37"] = "Indre et Loire";
$depts["38"] = "Isère";
$depts["39"] = "Jura";
$depts["40"] = "Landes";
$depts["41"] = "Loir et Cher";
$depts["42"] = "Loire";
$depts["43"] = "Haute Loire";
$depts["44"] = "Loire Atlantique";
$depts["45"] = "Loiret";
$depts["46"] = "Lot";
$depts["47"] = "Lot et Garonne";
$depts["48"] = "Lozère";
$depts["49"] = "Maine et Loire";
$depts["50"] = "Manche";
$depts["51"] = "Marne";
$depts["52"] = "Haute Marne";
$depts["53"] = "Mayenne";
$depts["54"] = "Meurthe et Moselle";
$depts["55"] = "Meuse";
$depts["56"] = "Morbihan";
$depts["57"] = "Moselle";
$depts["58"] = "Nièvre";
$depts["59"] = "Nord";
$depts["60"] = "Oise";
$depts["61"] = "Orne";
$depts["62"] = "Pas de Calais";
$depts["63"] = "Puy de Dôme";
$depts["64"] = "Pyrénées Atlantiques";
$depts["65"] = "Hautes Pyrénées";
$depts["66"] = "Pyrénées Orientales";
$depts["67"] = "Bas Rhin";
$depts["68"] = "Haut Rhin";
$depts["69"] = "Rhône";
$depts["70"] = "Haute Saône";
$depts["71"] = "Saône et Loire";
$depts["72"] = "Sarthe";
$depts["73"] = "Savoie";
$depts["74"] = "Haute Savoie";
$depts["75"] = "Paris";
$depts["76"] = "Seine Maritime";
$depts["77"] = "Seine et Marne";
$depts["78"] = "Yvelines";
$depts["79"] = "Deux Sèvres";
$depts["80"] = "Somme";
$depts["81"] = "Tarn";
$depts["82"] = "Tarn et Garonne";
$depts["83"] = "Var";
$depts["84"] = "Vaucluse";
$depts["85"] = "Vendée";
$depts["86"] = "Vienne";
$depts["87"] = "Haute Vienne";
$depts["88"] = "Vosges";
$depts["89"] = "Yonne";
$depts["90"] = "Territoire de Belfort";
$depts["91"] = "Essonne";
$depts["92"] = "Hauts de Seine";
$depts["93"] = "Seine St Denis";
$depts["94"] = "Val de Marne";
$depts["95"] = "Val d'Oise";
$depts["97"] = "DOM";

15 Commentaire
Commentaire ou Trackback

  1. j’aurais adoré trouvé ça avant de faire l’adaptation de PHPMotion : http://www.borntobestar.tv/france/seemore.php?load=rating

    parce que je suis du Canada et pour moi les départements de la france, je connais pas!

  2. Merci pour cette petite liste :) Exactement ce que je recherchais…

  3. nico

    pareil. merci.
    J’allais me la palucher mais je me suis dit. y a bien une bonne âme :)

    bonne journée

  4. kyride

    slt,
    Terrible je me disais je vais passais 2h pour avoir la liste complete comme quoi « google est mon ami »

  5. Tozman

    Merci ! une petite heure de sauvée !

  6. Merci beaucoup, une heure de travail pas passionnant en moins!
    :)

  7. Merci beaucoup pour le temps que tu m’as fais gagné !

  8. tainui

    i like +1 ! et merci bien sur :)

  9. Merci beaucoup ;)

  10. top_nullus

    Merci beaucoup, trop cool de ne pas avoir à tout saisir !

  11. top_nullus

    Il serait peut être bon d’ajouter
    $depts["971"] = « 971 – Guadeloupe »;
    $depts["972"] = « 972 – Martinique »;
    $depts["973"] = « 973 – Guyane »;
    $depts["974"] = « 974 – La Réunion »;
    $depts["975"] = « 975 – Saint-Pierre-et-Miquelon »;
    $depts["976"] = « 976 – Mayotte »;

  12. Très utile! Merci. :)

  13. axi

    Super merci

  14. Merci pour cette liste !
    Et merci a TOP_NULLUS pour le complément.

Laisse un commentaire !