string_concat

This function concatenates (joins together) the string representations of all arguments that are passed to it, and returns the result as a new string.

Arguments that are not strings will have the string() function run on them implicitly. See Conversion From Non-String Types for information on how those data types are converted.

If you want to join strings with certain characters between them, use string_join().

 

Syntax:

string_concat(value1 [, value2, ... max_val]);

ArgumentTypeDescription
value1AnyThe first value to concatenate
[, value2, ... max_val]AnyOPTIONAL Additional values to concatenate

 

Returns:

String

 

Example:

result = string_concat("W", "o", "r", "d", "s");

The above code calls string_concat on a series of letters to make a word. The new string is stored in a variable result.