Bonjour,

J'aimerai savoir comment je peux parcourir ce tableau associatif :

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
24
25
26
27
28
29
30
31
32
 
Array
(
    [Samsung] => Array
        (
            [J2ME] => Array
                (
                    [compat] => NOT TESTED
                    [select_signature] => 
                )
 
            [Windows Mobile] => Array
                (
                    [compat] => NOT TESTED
                    [available] => 1
                    [select_signature] => 
                )
 
        )
 
    [Motorola] => Array
        (
            [Windows Mobile] => Array
                (
                    [compat] => NOT TESTED
                    [available] => 1
                    [select_signature] => 
                )
 
        )
 
)
J'ai testé un parcours comme celui-ci :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
 
foreach ($arrayPlatforms as $i => $product) {
		echo $arrayPlatforms[$i]; // résultat : ArrayArray
	}
Mais je n'arrive pas à récupérer "Samsung" ou bien "Motorola". Comment puis-je faire ?

Merci