search

Home  >  Q&A  >  body text

Sort the array and store the sorted values ​​into a new array

The code for beginners is a bit long and messy. There is an array $a; through print_r($a);

The output results are 5250, 11000, 750

How to press from high to low Sort and store into a new array such as $b

袁郡袁郡1357 days ago998

reply all(1)I'll reply

  • 城堡

    城堡2021-04-28 09:39:23

    arsort() this function

    reply
    0
  • Cancelreply