Documentation

array_sorter
in package

Table of Contents

Properties

$sarray  : mixed
$sasc  : mixed
$skey  : mixed

Methods

_as_cmp()  : mixed
Custom sort function
array_sorter()  : mixed
Constructor
sortit()  : mixed
Sort method

Properties

Methods

_as_cmp()

Custom sort function

public _as_cmp(mixed $a, mixed $b) : mixed
Parameters
$a : mixed

an array entry

$b : mixed

an array entry

Tags
access

private

array_sorter()

Constructor

public array_sorter(mixed &$array, string $key[, bool $asc = true ]) : mixed
Parameters
$array : mixed

array to sort

$key : string

array key to sort by

$asc : bool = true

sort order (ascending or descending)

Tags
access

public

sortit()

Sort method

public sortit([bool $remap = true ]) : mixed
Parameters
$remap : bool = true

if true reindex the array to rewrite indexes

Tags
access

public


        
On this page

Search results