Substring
class Substring extends StringMutator (View source)
Extracts a substring from a string
Traits
Properties
protected | $encoding | from UsesEncoding | |
protected | $length | ||
protected | $start |
Methods
__construct(int $start, int $length = null, string $encoding = null)
No description
string
mutateString(string $value)
No description
Details
__construct(int $start, int $length = null, string $encoding = null)
No description
protected string|null
getEncoding(string $input = null)
No description
static Substring
make(int $start, int $length = null, string $encoding = null)
No description
final mixed
mutate(mixed $value)
Mutate the input value.
protected string
mutateString(string $value)
No description
protected string
resolveStringInput(mixed $value)
No description
protected void
setEncoding(string|null $encoding)
No description
protected void
validateEncoding(string|null $encoding)
No description