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
 |

|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|