Format a string
Parameters | |||
---|---|---|---|
string|array
|
$value |
A text string or array of text strings to be formatted |
# |
string
|
$glue = ', ' |
The glue string between each element |
# |
string
|
$lastGlue = 'and' |
The glue string between the last two elements |
# |
Returns | |
---|---|
string
|
The formatted text string |