Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge pull request #7701 from DelazJ/patch-2
Fix help of some array functions
- Loading branch information
Showing
with
5 additions
and 4 deletions.
@@ -1,12 +1,13 @@ | ||
{ | ||
"name": "array_to_string", | ||
"type": "function", | ||
"description": "Concatenates array elements into a string separated by a delimiter using and optional string for empty values.", | ||
"description": "Concatenates array elements into a string separated by a delimiter and using optional string for empty values.", | ||
"arguments": [ | ||
{"arg":"array", "description":"the input array"}, | ||
{"arg":"delimiter","optional":true,"default":"','","description":"the string delimiter used to separate concatenated array elements"}, | ||
{"arg":"empty_value","optional":true,"default":"''","description":"the optional string to use as replacement for empty (zero length) matches"}], | ||
"examples": [ { "expression":"array_to_string(array('1','2','3'),',')", "returns":"'1,2,3'"}, | ||
"examples": [ { "expression":"array_to_string(array('1','2','3'))", "returns":"'1,2,3'"}, | ||
{ "expression":"array_to_string(array(1,2,3),'-')", "returns":"'1-2-3'"}, | ||
{ "expression":"array_to_string(array('1','','3'),',','0')", "returns":"'1,0,3'"} | ||
] | ||
} |