str_repeat()

It repeats a string

Example

<?php
echo str_repeat(“php code”, 5);
?>

Output

php codephp codephp codephp codephp code

Share