Question discussion

Which of the following PHP functions is used to sort an array in ascending order without affecting the keys?

359256Medium DSSSB TGT Computer Science 0 replies 0 views
0
Which of the following PHP functions is used to sort an array in ascending order without affecting the keys?
  • Aksort()
  • Barray_sort()
  • Casort()
  • Dsort()
Correct answer: C

Explanation

asort() sorts an array in ascending order of values while keeping the key association.

Discussion 0

Nobody has replied yet. Start the discussion!