Sort And Searching Question:
Download Job Interview Questions and Answers PDF
Tell me which of the following maintain index associations?
• ksort
• asort
• sort
![Sort And Searching Interview Answer Sort And Searching Interview Question](https://globalguideline.com/public/images/interview/22.png)
Answer:
These are php sorting methods.
ksort and asort maintain index associations and sort from lowest to highest. ksort sorts keys.
sort doesnt maintain index associations.
ksort and asort maintain index associations and sort from lowest to highest. ksort sorts keys.
sort doesnt maintain index associations.
Download Sort And Searching Interview Questions And Answers
PDF