(
[@attributes] => Array
(
[artist] => 3 Doors Down
[page] => 1
[perPage] => 50
[totalPages] => 697
[total] => 34833
)
)
cuando recupero este array me sale este error
Parse error: syntax error, unexpected '@', expecting identifier (T_STRING) or variable (T_VARIABLE) or
por favor ayuda: como lo soluciono
Código PHP:
$array=$parsefm->toptracks->@attributes->artist;
echo $array;