The str_repeat() function repeats a string a specified number of times.
| 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 |
| Return Value: | Returns the repeated string |
|---|---|
| PHP Version: | 4+ |
Complete PHP String Reference
Your message has been sent to W3Schools.