bool asort(array $array, int $sortFlag = self::SORT_REGULAR)
Sort array maintaining index association.
bool asort(array $array, int $sortFlag = self::SORT_REGULAR)
Sort array maintaining index association.
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 |
bool | True on success or false on failure |
Designed by : w10schools
service@w10schools.com
Please login to continue.