Codeigniter String helper repeater()

Codeigniter String helper repeater()

Syntax:

repeater(Text, Count)

Parameters:
Text – specifies the string to be repeated.
Count – Specifies the number of repetitions

Return type:
string.

Description:
Used to repeat text a count number of times.

Example:

echo repeater ("w3mentor.com\n", 5);

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.