Collator::asort()

bool asort(array $array, int $sortFlag = self::SORT_REGULAR)

Sort array maintaining index association.

Parameters

array $array &$array Input array
int $sortFlag Flags for sorting, can be one of the following: Collator::SORTREGULAR - compare items normally (don't change types) Collator::SORTNUMERIC - compare items numerically Collator::SORT_STRING - compare items as strings

Return Value

bool True on success or false on failure
doc_Symfony
2016-10-28 06:09:23
Comments
Leave a Comment

Please login to continue.