This topic describes the syntax, features, parameters, and return values of array functions. This topic also provides examples of these functions.
arr_concat
Item | Description |
Syntax | arr_concat(tbl, [sep]) |
Feature | Concatenates strings in a specified table by using a specified character. |
Parameters |
|
Example | |
Return values | A string that is concatenated by using the specified character. In this example, |
arr_insert
Item | Description |
Syntax | arr_insert(list, value, [pos]) |
Feature | Inserts elements into an array. |
Parameters |
|
Example | |
Return values | A value of |
arr_remove
Item | Description |
Syntax | arr_remove(list, [pos]) |
Feature | Removes elements at the specified position from an array and returns the removed elements. |
Parameters |
|
Example | |
Return values | The element that is removed from the specified array. In this example, |
arr_sort
Item | Description |
Syntax | arr_sort(list, [comp]) |
Feature | Sorts elements from the beginning to the end of the index in an array in a specified order. |
Parameters |
|
Example | |
Return values | A value of |
arr_len
Item | Description |
Syntax | arr_len(arr) |
Feature | Counts the number of elements in an array. |
Parameters | arr: the array. |
Example | |
Return values | The number of elements in the specified array. Data type: numeric. In this example, |