Repeat String for Given Number of Times using PHP June 23, 2021 PHP 0 Comments 309 Views str_repeat function <?php $text = '+-'; $n = 5; $result = str_repeat($text, $n); echo $result; // +-+-+-+-+-
Leave a Comment
Cancel reply