PHP str_repeat() Function
Complete PHP String Reference
Definition and Usage
The str_repeat() function repeats a string a specified number of times.
Syntax
|
str_repeat(string,repeat)
|
| Parameter |
Description |
| string |
Required. Specifies the string to repeat |
| repeat |
Required. Specifies the number of times the string will be
repeated. Must be greater or equal to 0 |
Example
<?php
echo str_repeat(".",13);
?>
|
The output of the code above will be:
Complete PHP String Reference
Click here to design a Stunning Flash Website for Free
Wix is a revolutionary web design tool that provides anyone with the possibility to create professional and beautiful websites for free.
With e-commerce features, search engine visibility and many more professional tools, Wix is the ultimate solution for creating a spectacular site while saving tons of money.
|