Just make a for statement using count
and add another for statement for they key you're on.
for($i = 0; $i < count($array); $i++)
{
for($k = 0; $k <= $i; $k++)
{
print(" ");
}
print("Info<br>");
}
That will print as many times as the index key for the array is +1
so that
$array[0] will have one space
$array[1] will have two spaces
$array[2] will have three spaces.
etc.
Didn't test the code, at work and tired, please excuse mindless errors.
Craig