In this script below I read an array inside the foreach, but how can I read it off? when I give an echo it only returns me 1 id
$data = unserialize ($linha["range_ids"]);
// a:3:{i:1052;s:4:"1052";i:1053;s:4:"1053";i:1054;s:4:"1054";}
foreach($data as $key => $value): //Ler a Variavel
echo $range = $key.','; // Retorno do echo 1052,1053,1054,
endforeach;
echo $range; // Retorno do echo 1054 (Preciso que retorne assim 1052,1053,1054)