How does PHP realize that the array key name is unchanged and the values are interchangeable?

$arr = array("a"=>"aaa","b"=>"bbb");

$arr = array("a"=>"bbb","b"=>"aaa");
Php
Mar.05,2021

$arr = array('a'=>'aaa','b'=>'bbb');
$arr_new = array_combine(array_keys($arr),array_reverse(array_values($arr)));
var_dump($arr_new);

=
Oh, too late, @ panda mulberry claw


the code is a little bad, if there is a better way, welcome to communicate:

  

create a new temporary variable to store

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b35d8e-2bfbd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b35d8e-2bfbd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?