简体中文
str_repeat() 函数把字符串重复指定的次数。
str_repeat()
把字符串 "Shanghai " 重复 5 次:
<?php echo str_repeat("Shanghai",5); ?>
亲自试一试
str_repeat(string,repeat)