Documentation

ChooseRowsEtc
in package

Table of Contents

Methods

chooseCols()  : array<string|int, mixed>|string
CHOOSECOLS.
chooseRows()  : array<string|int, mixed>|string
CHOOSEROWS.
drop()  : array<string|int, mixed>|string
DROP.
expand()  : array<string|int, mixed>|string
EXPAND.
take()  : array<string|int, mixed>|string
TAKE.
transpose()  : array<string|int, mixed>
Transpose 2-dimensional array.
arrayValues()  : array<string|int, mixed>
dropRows()  : array<string|int, mixed>|string
takeRows()  : array<string|int, mixed>|string

Methods

chooseCols()

CHOOSECOLS.

public static chooseCols(mixed $input, mixed ...$args) : array<string|int, mixed>|string
Parameters
$input : mixed

expecting two-dimensional array

$args : mixed
Return values
array<string|int, mixed>|string

chooseRows()

CHOOSEROWS.

public static chooseRows(mixed $input, mixed ...$args) : array<string|int, mixed>|string
Parameters
$input : mixed

expecting two-dimensional array

$args : mixed
Return values
array<string|int, mixed>|string

drop()

DROP.

public static drop(mixed $input[, mixed $rows = null ][, mixed $columns = null ]) : array<string|int, mixed>|string
Parameters
$input : mixed

expect two-dimensional array

$rows : mixed = null
$columns : mixed = null
Return values
array<string|int, mixed>|string

expand()

EXPAND.

public static expand(mixed $input, mixed $rows[, mixed $columns = null ][, mixed $pad = '#N/A' ]) : array<string|int, mixed>|string
Parameters
$input : mixed

expecting two-dimensional array

$rows : mixed
$columns : mixed = null
$pad : mixed = '#N/A'
Return values
array<string|int, mixed>|string

take()

TAKE.

public static take(mixed $input, mixed $rows[, mixed $columns = null ]) : array<string|int, mixed>|string
Parameters
$input : mixed

expecting two-dimensional array

$rows : mixed
$columns : mixed = null
Return values
array<string|int, mixed>|string

transpose()

Transpose 2-dimensional array.

public static transpose(array<string|int, mixed> $array) : array<string|int, mixed>

See https://stackoverflow.com/questions/797251/transposing-multidimensional-arrays-in-php especially the comment from user17994717.

Parameters
$array : array<string|int, mixed>
Return values
array<string|int, mixed>

arrayValues()

private static arrayValues(mixed $array) : array<string|int, mixed>
Parameters
$array : mixed
Return values
array<string|int, mixed>

dropRows()

private static dropRows(array<string|int, mixed> $array, mixed $offset) : array<string|int, mixed>|string
Parameters
$array : array<string|int, mixed>
$offset : mixed
Return values
array<string|int, mixed>|string

takeRows()

private static takeRows(array<string|int, mixed> $array, mixed $offset) : array<string|int, mixed>|string
Parameters
$array : array<string|int, mixed>
$offset : mixed
Return values
array<string|int, mixed>|string

        
On this page

Search results