Assume you would like to sort an array in ascending order by value while preserving key associations. Which of the following PHP sorting functions would you use?
asort()
Correct:
asort()
Only the asort function sorts an array by value without destroying index associations. Therefore, Answer B is correct.