<?php $mostrar=1; $end=7; //Cambia el 7 por el número de elementos while($end>$mostrar) { $arraym="$array[" . $mostrar . "]"; print $arraym; ?>