Gen. partnerAlgotech

PHP function sort()

Sort an array

|
September 11, 2019

Availability in PHP 4.0

Sort an array

Parameters

Parameter Data type Default value Note
$array array not The input array.
$sort_flags int null The optional second parameter sort_flags may be used to modify the sorting behavior using these values:

Return values

bool

Returns true on success, otherwise false on failure.

Other resources

Official sort function documentation

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.