美文网首页
PHP str_repeat() 函数讲解

PHP str_repeat() 函数讲解

作者: 知码客 | 来源:发表于2023-05-25 10:52 被阅读0次

今天咱们说一个php中常见的函数,str_repeat

定义用法

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

语法

str_repeat(string,repeat)

其中string是必须的就是要循环的字符串,repeat是整数必须大于0

示例


相关文章

网友评论

      本文标题:PHP str_repeat() 函数讲解

      本文链接:https://www.haomeiwen.com/subject/yjkhedtx.html