i use this to show all the elements in an array for each value

for($i =0; $i < count($words); $i++) {
echo $words[$i]."<br>";
}