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().
string_concat(value1 [, value2, ... max_val]);
Argument | Type | Description |
---|---|---|
value1 | Any | The first value to concatenate |
[, value2, ... max_val] | Any | OPTIONAL Additional values to concatenate |
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.