Is there a built-in PHP function that can be used to repeat a string multiple times?
Yes, in PHP, the `str_repeat()` function can be used to repeat a string multiple times. This function takes two parameters: the string to be repeated and the number of times to repeat it. It then returns a new string that consists of the original string repeated the specified number of times.
$string = "Hello ";
$repeatedString = str_repeat($string, 3);
echo $repeatedString; // Output: Hello Hello Hello