str_repeat

(PHP 4 )

str_repeat -- 문자열을 반복한다.

설명

string str_repeat ( string input, int multiplier)

input_strmultiplier번 반복해서 반환한다. multiplier는 반드시 0보다 커야 한다.

예 1. str_repeat()

echo str_repeat ("-=", 10);

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

참고: 이 함수는 PHP 4.0 에서 추가되었다.