what is the syntax of the STR_REPEAT() function in php?
str_repeat(string,repeat)
Parameter | Description |
---|---|
string | Required. Specifies the string to repeat |
repeat | Required. Specifies the number of times the string will be repeated. Must be greater or equal to 0 |
examples of the STR_REPEAT() function
Example 1. In this example, we repeat the string “Wow” 13 times.
<?php
echo str_repeat("Wow",13);
?>