42.7k views
4 votes
Sort Sorts by value; assign new numbers as the keys.

Select one:

a. sort()

b. arsort()

c. asort()

rsort()

User Smead
by
8.4k points

1 Answer

6 votes

Answer: (a) sort()

Step-by-step explanation:

Using sort() the keys are not preserved. However it sorts the array.

example : sort($array);

User Justin K
by
9.2k points