Easy Tutorial
❮ Func Filesystem Fileatime Php Operators ❯

PHP str_repeat() Function

PHP String Reference Manual

Example

Repeat the string "." 13 times:


Definition and Usage

The str_repeat() function repeats a string a specified number of times.


Syntax

Parameter Description
string Required. The string to be repeated.
repeat Required. The number of times the string will be repeated. Must be greater than or equal to 0.

Technical Details

Return Value: Returns the repeated string.
PHP Version: 4+
--- ---
❮ Func Filesystem Fileatime Php Operators ❯