grammatical_implode
Less than 1 minute
grammatical_implode
Grammatically correct array implode.
public grammatical_implode(array $array, string $glue = 'and'): string
Implode an array, joining it's values in a grammatically correct manner.
Example:
echo grammatical_implode([ 'One', 'Two', 'Three', 'Four' ]);
Output: One, Two, Three and Four
Parameters
Parameter | Type | Description |
---|---|---|
$array | array | |
$glue | string |
Generated by Hazaar API Doc Generator