首页 > php函数 > PHP str_repeat()作用与实例教程

PHP str_repeat()作用与实例教程

PHP str_repeat()作用与实例教程

定义和用法

该str_repeat()函数重复一个字符串指定的次数。 

语法

str_repeat(string,repeat)

ParameterDescriptionstring指定的字符串重复repeat指定次数的字符串会重复出现。必须大于或等于0

<?php
echo str_repeat(".",13);

输出结果

.............


文章地址:https://www.phprm.com/function/3d93490779e54bbff4f447b46b8be3f9.html

转载随意^^请带上本文地址!

标签:none

发表留言