How can you repeat a specific phrase, like "Hello", a certain number of times in PHP?

To repeat a specific phrase, like "Hello", a certain number of times in PHP, you can use a loop to iterate the desired number of times and print the phrase each time. One way to achieve this is by using a for loop that runs from 1 to the desired number of repetitions and echoes the phrase "Hello" in each iteration.

// Specify the number of times to repeat the phrase
$repetitions = 5;

// Loop through and print the phrase "Hello" the specified number of times
for ($i = 0; $i < $repetitions; $i++) {
    echo "Hello <br>";
}