How can the code be modified to output all 20 names instead of just one?

The issue is that the code is currently only outputting one name because the loop is not iterating through all 20 names in the array. To output all 20 names, we need to modify the loop to iterate through the entire array and print each name individually.

<?php
$names = array("Alice", "Bob", "Charlie", "David", "Eve", "Frank", "Grace", "Hannah", "Isaac", "Jack", "Kate", "Liam", "Mia", "Nathan", "Olivia", "Peter", "Quinn", "Rachel", "Sam", "Tina");

foreach ($names as $name) {
    echo $name . "<br>";
}
?>