Extract Uses ArrayEnabled
Table of Contents
- $arrayArgumentHelper : ArrayArgumentHelper
- left() : array<string|int, mixed>|string
- LEFT.
- mid() : array<string|int, mixed>|string
- MID.
- right() : array<string|int, mixed>|string
- RIGHT.
- evaluateArrayArguments() : array<string|int, mixed>
- evaluateArrayArgumentsSubset() : array<string|int, mixed>
- evaluateSingleArgumentArray() : array<string|int, mixed>
- initialiseHelper() : void
Properties
$arrayArgumentHelper
private
static ArrayArgumentHelper
$arrayArgumentHelper
Methods
left()
LEFT.
public
static left(mixed $value[, mixed $chars = 1 ]) : array<string|int, mixed>|string
Parameters
- $value : mixed
-
String value from which to extract characters Or can be an array of values
- $chars : mixed = 1
-
The number of characters to extract (as an integer) Or can be an array of values
Return values
array<string|int, mixed>|string —The joined string If an array of values is passed for the $value or $chars arguments, then the returned result will also be an array with matching dimensions
mid()
MID.
public
static mid(mixed $value, mixed $start, mixed $chars) : array<string|int, mixed>|string
Parameters
- $value : mixed
-
String value from which to extract characters Or can be an array of values
- $start : mixed
-
Integer offset of the first character that we want to extract Or can be an array of values
- $chars : mixed
-
The number of characters to extract (as an integer) Or can be an array of values
Return values
array<string|int, mixed>|string —The joined string If an array of values is passed for the $value, $start or $chars arguments, then the returned result will also be an array with matching dimensions
right()
RIGHT.
public
static right(mixed $value[, mixed $chars = 1 ]) : array<string|int, mixed>|string
Parameters
- $value : mixed
-
String value from which to extract characters Or can be an array of values
- $chars : mixed = 1
-
The number of characters to extract (as an integer) Or can be an array of values
Return values
array<string|int, mixed>|string —The joined string If an array of values is passed for the $value or $chars arguments, then the returned result will also be an array with matching dimensions
evaluateArrayArguments()
protected
static evaluateArrayArguments(callable $method, mixed ...$arguments) : array<string|int, mixed>
Parameters
- $method : callable
- $arguments : mixed
Return values
array<string|int, mixed> —evaluateArrayArgumentsSubset()
protected
static evaluateArrayArgumentsSubset(callable $method, int $limit, mixed ...$arguments) : array<string|int, mixed>
Parameters
- $method : callable
- $limit : int
- $arguments : mixed
Return values
array<string|int, mixed> —evaluateSingleArgumentArray()
protected
static evaluateSingleArgumentArray(callable $method, array<string|int, mixed> $values) : array<string|int, mixed>
Parameters
- $method : callable
- $values : array<string|int, mixed>
Return values
array<string|int, mixed> —initialiseHelper()
private
static initialiseHelper(array<string|int, mixed> $arguments) : void
Parameters
- $arguments : array<string|int, mixed>