PHP str_repeat() Function

PHP SHA1() FUNCTION
PHP str_pad() Function

what is the syntax of the STR_REPEAT() function in php?

str_repeat(string,repeat)
ParameterDescription
stringRequired. Specifies the string to repeat
repeatRequired. Specifies the number of times the string will be repeated. Must be greater or equal to 0
PHP STR_REPEAT() method

examples of the STR_REPEAT() function

Example 1. In this example, we repeat the string “Wow” 13 times.

<?php
echo str_repeat("Wow",13);
?>

PHP SHA1() FUNCTION
PHP str_pad() Function

Stay up-to-date about PHP!

We don’t spam!

en English
X
Scroll to Top