I have this PHP array:
(我有这个PHP数组:)
Array
(
[Album Title 1] => Array
(
[Track Title 1] => 27
[Track Title 2] => 18
[Track Title 3] => 7
)
[Album Title 2] => Array
(
[Track Title 1] => 41
[Track Title 2] => 17
[Track Title 3] => 12
)
)
How can I echo "Album Title 1", "Track Title 1", and it's corresponding int(27), without using dot notation?
(如何在不使用点符号的情况下回显“专辑标题1”,“曲目标题1”及其对应的int(27)?)
(I don't know the exact title of "Album Title 1") ((我不知道“相册标题1”的确切标题))
To get "Album Title 1", I've tried:
(为了获得“专辑标题1”,我尝试过:)
echo $albums[0];
print_r(array_values($albums));
foreach ($albums as $a){
print_r($a) . "
";
}
etc...
(等等...)
I've tried more variations of these for every value I need.
(对于我需要的每个值,我都尝试了这些的更多变化。)
ask by Damien Stewart translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…