str_repeat
str_repeat
Repeat a string
string **str_repeat** string $string int $times
Returns repeated
times.
string``times
stringThe string to be repeated.
times
Number of time the string should be
repeated.
string
has to be greater than or equal to 0.
If the is set to 0, the function
will return an empty string.
`times``times`
Returns the repeated string.
Voorbeeld: example
<?php
echo str_repeat("-=", 10);
?>
-=-=-=-=-=-=-=-=-=-=
forstr_pad``substr_count