Vidyalelo
PHP · Q50

Arrays

Programming · PHP · question 50

Q50

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?

A.
ksort()
B.
asort()
Answer
C.
krsort()
D.
sort()
E.
usort()

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board