How to call all the tags at once?
I curently do something like this:
$artist['tags']['0']['name'];
$artist['tags']['1']['name'];
// and so on for all 5 (0-4)
[tags] => Array
(
[0] => Array
(
[name] => hip-hop
[url] => http://www.last.fm/tag/hip-hop
)
[1] => Array
(
[name] => romanian
[url] => http://www.last.fm/tag/romanian
)
[2] => Array
(
[name] => romanian hip-hop
[url] => http://www.last.fm/tag/romanian%20hip-hop
)
[3] => Array
(
[name] => rap
[url] => http://www.last.fm/tag/rap
)
[4] => Array
(
[name] => hip hop
[url] => http://www.last.fm/tag/hip%20hop
)
)
You can use a
foreachloop to iterate through all the tags of an artist: