dup(string,n)

Duplicates the contents of a string n times, where n is a positive integer constant. For example,
$dup('abc',3) returns the string abcabcabc. The output is a string variable.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.