Bonjour à tous,
Pourriez-vous me dire comment afficher un tableau en 2 dimensions.
J'ai :
Je fais echo("$tab[1][1]") pour afficher le mot a mais il m'affiche : Array[1]
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 $tab[1][1]="a"; $tab[1][2]="b"; $tab[1][3]="c"; $tab[1][4]="d"; $tab[1][5]="e"; $i=1; $nbtab = count($tab[$i]);
Pourriez-vous m'aider à corriger cette erreur ?
Partager