(PHP4 >= 4.0b4)
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.
Példa 1. Str_repeat() example 1
2 echo str_repeat ("-=", 10);
3 |
|
This will output "-=-=-=-=-=-=-=-=-=-=".
Megjegyzés:
This function was added in PHP 4.0.