Returns a string containing a string representation of all the array elements in the same order, with the $separator string between each element.

array:join(ARRAY $array, STRING $separator="") : STRING

array:join([1,2,3])
#=> "123"

array:join([1,2,3],'-')
#=> "1-2-3"

array:join(["hello",'friend'],' ')
#=> "hello friend"   

array:join(["hello",'friend', [1,2] ])
#=> Error: Array totype_string conversion

Copyright ©2013-2022 SunSed®. All rights reserved.