(PHP 4 >= 4.0.0)
str_repeat -- 문자열을 반복한다.
설명
string str_repeat
(string input, int multiplier)
input_str을 multiplier번 반복해서 반환한다.
multiplier는 반드시 0보다 커야 한다.
예 1.
str_repeat() 예
echo str_repeat ("-=", 10);
|
|
This will output "-=-=-=-=-=-=-=-=-=-=".
참고:
이 함수는 PHP 4.0 에서 추가되었다.