class Remove extends StringMutator (View source)

Removes all occurrences of the given string from the input string.

Traits

Methods

__construct(array|string $search, bool $caseSensitive = true)

No description

mixed
__invoke(mixed $value)

Mutate the input value.

from  Mutator
static Remove
make(array|string $search, bool $caseSensitive = true)

No description

mixed
mutate(mixed $value)

Mutate the input value.

string
mutateString(string $value)

No description

string
resolveStringInput(mixed $value)

No description

Details

__construct(array|string $search, bool $caseSensitive = true)

No description

Parameters

array|string $search

The value(s) to search for.

bool $caseSensitive

Whether to perform a case-sensitive search (default: true).

final mixed __invoke(mixed $value)

Mutate the input value.

Parameters

mixed $value

Return Value

mixed

static Remove make(array|string $search, bool $caseSensitive = true)

No description

Parameters

array|string $search

The value(s) to search for.

bool $caseSensitive

Whether to perform a case-sensitive search (default: true).

Return Value

Remove

final mixed mutate(mixed $value)

Mutate the input value.

Parameters

mixed $value

Return Value

mixed

protected string mutateString(string $value)

No description

Parameters

string $value

Return Value

string

protected string resolveStringInput(mixed $value)

No description

Parameters

mixed $value

Return Value

string