PHP function arsort()

Availability in PHP 4.0

Sort an array in reverse order and maintain index association

Parameters

Parameter Data type Default value Note
$array array not The input array.
$sort_flags int null You may modify the behavior of the sort using the optional parameter sort_flags, for details see sort.

Return values

bool

Returns true on success, otherwise false on failure.

Other resources

Official arsort documentation

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.