PHP str_repeat() Function

P
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

Add comment

Tutor Network

Share this

Learn PHP from A to Z