J
julianmoors
Here's the code:
@content =
(
[
"tones" =>
[
"Australian Top 10" => ["Australian Chart"],
"England Euro 2004" => ["Football Chart"],
"hoops" => ["Ye Old Faithful"],
"Italia Hits" => ["Italian Chart"],
"Most Selected Tones" => ["Most Selected"],
"UK Top10 Chart" => ["UK Chart"]
]
],
[
"polytones" =>
[
"Australian Top 10" => ["Australian Chart"],
"England Euro 2004" => ["Football Chart"],
"hoops" => ["Ye Old Faithful"],
"John Williams - Star Wars Them" => ["John Williams"],
"Most Selected Tones" => ["Most Selected"],
"UK Top 10 Chart" => ["UK Chart"]
]
],
[
"stereotones" =>
[
"Most popular" => ["Most Selected"]
]
]
);
So far I've tried
foreach (@content) {
print $_;
}
and all I get is ARRAY(0x16cd0f8)ARRAY(0x16cd2a8)ARRAY(0x16cd32c) which
I can only assume are the references to the arrays. How do I
dereference them?
Here's what I want to do using nested for loops:
1. Go into the content array.
2. Display the different types of ringtones.
3. Go into the types.
4. Display the different charts
5. Go into the charts.
6. Display the different headers.
@content =
(
[
"tones" =>
[
"Australian Top 10" => ["Australian Chart"],
"England Euro 2004" => ["Football Chart"],
"hoops" => ["Ye Old Faithful"],
"Italia Hits" => ["Italian Chart"],
"Most Selected Tones" => ["Most Selected"],
"UK Top10 Chart" => ["UK Chart"]
]
],
[
"polytones" =>
[
"Australian Top 10" => ["Australian Chart"],
"England Euro 2004" => ["Football Chart"],
"hoops" => ["Ye Old Faithful"],
"John Williams - Star Wars Them" => ["John Williams"],
"Most Selected Tones" => ["Most Selected"],
"UK Top 10 Chart" => ["UK Chart"]
]
],
[
"stereotones" =>
[
"Most popular" => ["Most Selected"]
]
]
);
So far I've tried
foreach (@content) {
print $_;
}
and all I get is ARRAY(0x16cd0f8)ARRAY(0x16cd2a8)ARRAY(0x16cd32c) which
I can only assume are the references to the arrays. How do I
dereference them?
Here's what I want to do using nested for loops:
1. Go into the content array.
2. Display the different types of ringtones.
3. Go into the types.
4. Display the different charts
5. Go into the charts.
6. Display the different headers.