请输入您要查询的百科知识:

 

词条 str_repeat
释义

定义和用法

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

语法

str_repeat(string,repeat)

参数 描述

string 必需。规定要重复的字符串。

repeat 必需。规定字符串将被重复的次数。必须大于等于 0。

例子

<?php
echo str_repeat(".",13);
?>输出:

.............PHP String 函数

随便看

 

百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2025/3/24 22:09:05