class Explode extends Mutator (View source)

Explode a string into an array

Methods

__construct(string $delimiter, int $limit = PHP_INT_MAX)

No description

mixed
__invoke(mixed $value)

Mutate the input value.

from  Mutator
static Explode
make(string $delimiter, int $limit = PHP_INT_MAX)

No description

mixed
mutate(mixed $value)

Mutate the input value.

Details

__construct(string $delimiter, int $limit = PHP_INT_MAX)

No description

Parameters

string $delimiter

The boundary string.

int $limit

The maximum number of elements to return (optional).

final mixed __invoke(mixed $value)

Mutate the input value.

Parameters

mixed $value

Return Value

mixed

static Explode make(string $delimiter, int $limit = PHP_INT_MAX)

No description

Parameters

string $delimiter

The boundary string.

int $limit

The maximum number of elements to return (optional).

Return Value

Explode

mixed mutate(mixed $value)

Mutate the input value.

Parameters

mixed $value

Return Value

mixed