![]() ![]() To sort the keys of an associative array, use the krsort() function.Use the ksort() function to sort the keys of an associative array in ascending order. ![]() The krsort() function is like the ksort() function except that it sorts the keys of an array in descending order: krsort( array &$array, int $flags = SORT_REGULAR): bool Code language: PHP ( php ) ) Code language: PHP ( php ) PHP krsort() fucntion
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |