Bonjour,
Je voudrais savoir comment je peux renommer une clé d'un tableau
En fait voici mon array :
et je vais renommer 'code' par 'title'
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 [0]=> array(21) { ["title"]=> string(6) "Dr" ["grade"]=> int(20) } [1]=> &array(21) { ["title"]=> string(6) "Prof" ["grams"]=> int(30) } ["ecole"]=> array(3) { ["numero"]=> float(73.04) ["code"]=> string(3) "Dent." } }
merci
Partager