Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/01/2016, 23:14
czfritz
 
Fecha de Ingreso: agosto-2010
Ubicación: peru
Mensajes: 115
Antigüedad: 13 años, 8 meses
Puntos: 0
error al jalar array

[toptracks] => SimpleXMLElement Object
(
[@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
esta $parsefm variable es en donde esta almacenado el array