PHP str_repeat()

 

str_repeat

str_repeat() 函数把字符串重复指定的次数。

 

示例:

function strRepeat()
{
    echo str_repeat("*", 5);     // *****
}

 

posted @ 2022-03-19 14:48  幽篁晓筑  阅读(38)  评论(0编辑  收藏  举报