Ramzz1994,
il y a 12 ans
Bonjour,
// [0] correspond à l'indice dans le tableau.
// 9 correspond à la valeur de [0]
// Dans ce genre de cas, on écrit le tableau comme ceci :
// array('9','toto','toto aime titi');
$tableauA = array (
[0] => 9,
[1] => 'toto',
[2] => 'toto aime titi
);
// Tu pourras utiliser ce tableau comme ça : $tableauA[0];
// 'id' correspond à l'indice de ton tableau.
// 9 correspond toujours à la valeur de 'id'.
$tableauB = array (
'id' => 9,
'titre' => 'toto',
'contenu' => 'toto aime titi'
);
// Tu pourras utiliser ce tableau comme ça : $tableauB'id'];
Bonne chance,
Ramz.