PHP str_repeat() Function

The str_repeat() function is used to repeat a string n times.

Demo :



Type Text : Type Number

Example :

Type Sentance :php is a programming language
Type No : 5

Following code is str_repeat() function core If you need to you copy and use to your website.


<?php
  $stringRepFun = "PHP repeat string";
  $result = str_repeat($stringRepFun,10);
  echo $result;
?>

In the str_repeat() function have two parameters that name is string input,int mult.

Free Download Script :

If you need str_repeat() function demo code download from following link.

Download




Content