What is the best practice for dynamically reading and outputting multiple answers in PHP?

When dynamically reading and outputting multiple answers in PHP, it is best to use an array to store the answers and then loop through the array to output each answer. This allows for flexibility in the number of answers and makes the code easier to maintain.

$answers = array("Answer 1", "Answer 2", "Answer 3");

foreach ($answers as $answer) {
    echo $answer . "<br>";
}