Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
String

Method String.implode_nicely()


Method implode_nicely

string implode_nicely(array(string|int|float) foo, string|void separator)

Description

This function implodes a list of words to a readable string, e.g. ({"straw","berry","pie"}) becomes "straw, berry and pie". If the separator is omitted, the default is "and". If the words are numbers they are converted to strings first.

See also

`*()