Repeat String

Repeat a string a specified number of times to create a new concatenated string.

Code

General
str_repeat($str, $count);

Parameters

The string to repeat

Number of times to repeat

Server

More PHP Snippets