J'ai un tableau et j'utilise print_r
et ce qui se produit:Impression sur chaque élément de tableau
Array
(
[141] => 1
[171] => 3
[156] => 2
[241] => 1
[271] => 1
[256] => 1
[341] => 1
[371] => 1
[356] => 1
[441] => 1
[471] => 1
)
Comment puis-je imprimer l'index [141] et ainsi de suite?
Vous pouvez regarder le manuel. La structure de contrôle 'foreach' en particulier http://au2.php.net/manual/fr/control-structures.foreach.php –