Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

string_repeat

CryoEagle edited this page Dec 26, 2018 · 2 revisions

string_repeat

Returns a copy of a given string repeated a given number of times.

Syntax:

string_repeat(str, count)
Argument Description
string str The string to repeat
string count The number of times to repeat the string

Returns: string

Description

This function simply returns the same string repeated a given number of times over itself.

Example:

str1 = 'Hello World';
str2 = string_repeat(str1, 3);

This will set str2 to 'Hello WorldHello WorldHello World'.

Back to strings

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /