str_repeat

(PHP 4 >= 4.0.0)

str_repeat -- Repeat a string

Description

string str_repeat ( string input, int multiplier)

Returns input_str repeated multiplier times. multiplier has to be greater than 0.

Przykład 1. str_repeat() example

echo str_repeat("-=", 10);

This will output "-=-=-=-=-=-=-=-=-=-=".

See also substr_count().