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<count($people); $i++) { //end when $i is larger than amount of people
echo " <li>{$people[$i]}</li>\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 " <li>$human</li>\n";
}
WHILE
Like FOR, loops while condition is met.