PHP/str_repeat()

解説 文字列を第二引数分繰り返す

str_repeat($str, 繰り返す回数)

sample1
abcdabcdabcdabcd
sample1code
echo str_repeat("abcd", 4);