1$clothes = array("hat","shoe","shirt");
2foreach ($clothes as $item) {
3 echo $item;
4}
1 Array (
2 [0] => Array (
3 [fid] => 14
4 [list] => 1
5 [data] => Array (
6 [alt] =>
7 [title] =>
8 )
9 [uid] => 1
10 [filename] => trucks_10785.jpg
11 [filepath] => sites/default/files/trucks_10785.jpg
12 [filemime] => image/jpeg
13 [filesize] => 143648
14 [status] => 1
15 [timestamp] => 1291424171
16 [nid] => 8
17 )
18 [1] => Array (
19 [fid] => 19
20 [list] => 1
21 [data] => Array (
22 [alt] =>
23 [title] =>
24 )
25 [uid] => 1
26 [filename] => school.jpg
27 [filepath] => sites/default/files/school.jpg
28 [filemime] => image/jpeg
29 [filesize] => 115355
30 [status] => 1
31 [timestamp] => 1292029563
32 [nid] => 8
33 )
34 [2] => Array (
35 [fid] => 20
36 [list] => 1
37 [data] => Array (
38 [alt] =>
39 [title] =>
40 )
41 [uid] => 1
42 [filename] => Life_is_wonderful_by_iNeedChemicalX.jpg
43 [filepath] => sites/default/files/Life_is_wonderful_by_iNeedChemicalX_0.jpg
44 [filemime] => image/jpeg
45 [filesize] => 82580
46 [status] => 1
47 [timestamp] => 1292029572
48 [nid] => 8
49 )
50 [3] => Array (
51 [fid] => 21
52 [list] => 1
53 [data] => Array (
54 [alt] =>
55 [title] =>
56 )
57 [uid] => 1
58 [filename] => school_rural.jpg
59 [filepath] => sites/default/files/school_rural.jpg
60 [filemime] => image/jpeg
61 [filesize] => 375088
62 [status] => 1
63 [timestamp] => 1292029582
64 [nid] => 8
65 )
66 )