class Implode extends Mutator (View source)

Implode an array or iterable value.

Methods

__construct(string $glue = '', string $finalGlue = null)

No description

mixed
__invoke(mixed $value)

Mutate the input value.

from  Mutator
static Implode
make(string $glue = '', string $finalGlue = null)

No description

mixed
mutate(mixed $value)

Mutate the input value.

Details

__construct(string $glue = '', string $finalGlue = null)

No description

Parameters

string $glue

The glue to use between values (default: "").

string $finalGlue

The glue to use between the last two values (optional).

final mixed __invoke(mixed $value)

Mutate the input value.

Parameters

mixed $value

Return Value

mixed

static Implode make(string $glue = '', string $finalGlue = null)

No description

Parameters

string $glue

The glue to use between values (default: "").

string $finalGlue

The glue to use between the last two values (optional).

Return Value

Implode

mixed mutate(mixed $value)

Mutate the input value.

Parameters

mixed $value

Return Value

mixed