You need to use loop to output array data as text.
There are multiple loops in PHP:
FOR
For will iterate $i (can be diferent variable and different change than iteration) and will end when the condition is not true anymore.
$people = array('Joe','Jane','Mike');
for($i=0; $i{$people[$i]}\n";
}
FOREACH
Very useful for unordered arrays - this loop will give you all values in the array as variable you want:
$people = array('Joe','Jane','Mike');
foreach($people as $human) { //end when $i is larger than amount of people
echo " $human\n";
}
WHILE
Like FOR, loops while condition is met.