PHP str_repeat() 函数
PHP 教程
· 2019-01-29 23:12:31
实例
把字符串 "." 重复 13 次:
<?php
echo str_repeat(".",13);
?>
echo str_repeat(".",13);
?>
定义和用法
str_repeat() 函数把字符串重复指定的次数。
语法
str_repeat(string,repeat)
| 参数 | 描述 |
|---|---|
| string | 必需。规定要重复的字符串。 |
| repeat | 必需。规定字符串将被重复的次数。必须大于等于 0。 |
技术细节
| 返回值: | 返回被重复的字符串。 |
|---|---|
| PHP 版本: | 4+ |
点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html
Developer's Guide to Social Programming
Mark D. Hawker / Addison-Wesley Professional / 2010-8-25 / USD 39.99
In The Developer's Guide to Social Programming, Mark Hawker shows developers how to build applications that integrate with the major social networking sites. Unlike competitive books that focus on a s......一起来看看 《Developer's Guide to Social Programming》 这本书的介绍吧!