pike.ida.liu.se
Search for
Home > Docs > Pike reference

[Top]
String

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

`*()

Module reference for Pike v7.8 release 116, 2008-12-31