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