Repeat string script

Repeat String Script can convert all capital or small letter to repeat string order.

Demo :



Type Text : Type Number

Example :

Type Text : PHP repeat string.

Type Number : 5

If you need to repeat multiple string following code useful to you.


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

In the above code is used to repeat string 10 times. The 'PHP repeat string' this string stored in $stringRep variable.Then str_repeat() function repeat "PHP repeat string" letter 10 times. which function have two arguments that is string input,int mult.

String input is a first argument for str_repeat function.which argument take repeat string. The second input is int mult argument.which argument take to repete string number of time.

<form id="str_rept" name="str_rept" method="post" action="">
<input type="text" id="str_repeat_fun" name="str_repeat_fun"/>
<input type="text" id="number_rep" name="number_rep" />
<input type="submit" value="Repeat"/>
</form>

In the above form used to repeat string script. when click Repeat button in the form will pass the string through POST method. The first text box will use to give text and second text box will use to number of time repeat string.

Free Download Script :

If you need Repeat String Script click and download from following link.

Download




Content