PHP Code By tony
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

    /**
        交换数组中的键和值
     */

    $userNames = 
array('tony'=>26,'xiaosi'=>26,'jacky'=>25);
    
    print_r($userNames);
    
    
echo '<br>';
    
    $newUserNames = array_flip($userNames);
    
    print_r($newUserNames);
    
?>




相关文章:

  • 2022-12-23
  • 2021-12-05
  • 2021-10-05
  • 2022-12-23
  • 2021-07-10
  • 2021-04-29
  • 2022-12-23
猜你喜欢
  • 2021-08-04
  • 2021-09-02
  • 2021-06-06
  • 2021-06-20
  • 2021-04-25
  • 2022-12-23
  • 2021-09-19
相关资源
相似解决方案