PHP str_repeat() 函数
PHP str_repeat() 函数
定义和用法
str_repeat() 函数把字符串重复指定的次数。
语法
str_repeat(string,repeat)
参数 | 描述 |
---|---|
string | 必需。规定要重复的字符串。 |
repeat | 必需。规定字符串将被重复的次数。必须大于等于 0。 |
技术细节
返回值: | 返回被重复的字符串。 |
---|---|
PHP 版本: | 4+ |

相关文章
- PHP 数据类型
- PHP 运算符
- PHP 包含文件 include 和 require 语句
- PHP array_filter() 函数
- PHP array_intersect_uassoc() 函数
- PHP array_merge() 函数
- PHP array_multisort() 函数
- PHP array_rand() 函数
- PHP array_reduce() 函数
- PHP array_uintersect_assoc() 函数
- PHP array_values() 函数
- PHP current() 函数
- PHP extract() 函数
- PHP prev() 函数
- PHP rsort() 函数
- PHP uasort() 函数
- PHP 5 Array 函数
- PHP cURL 函数
- PHP FTP 函数
- PHP HTTP 函数