PDA

View Full Version : What is the use of "ksort" in php?



sinelogixtech
07-03-2017, 02:07 AM
<style type="text/css"> body,div,table,thead,tbody,tfoot,tr,th,td,p { font-family:"Arial"; font-size:x-small ** </style> What is the use of "ksort" in php?

sinelogixweb
07-06-2017, 12:47 AM
The ksort() function sorts an associative array in ascending order, according to the key. Tip: Use the krsort() function to sort an associative array in descending order, according to the key. Tip: Use the asort() function to sort an associative array in ascending order, according to the value.