当前位置:网站首页>PHP array sort
PHP array sort
2022-07-22 17:40:00 【Much larger than 369】
$a =array(100,80,50,10,0);
$b = array("c","f","q","e","z");
array_multisort($a,$b);
var_dump($a);
var_dump($b);
Running results :
array(5) { [0]=> int(0) [1]=> int(10) [2]=> int(50) [3]=> int(80) [4]=> int(100) }
array(5) { [0]=> string(1) “z” [1]=> string(1) “e” [2]=> string(1) “q” [3]=> string(1) “f” [4]=> string(1) “c” }
边栏推荐
- [MCU simulation project] external interrupts 0 and 1 control diodes through different triggering methods respectively
- Overview of nftfi track layout
- Best practices of JD cloud Distributed Link Tracking in financial scenarios
- 关键路径实现
- Understand five popular NFT delivery methods and their advantages and disadvantages
- Sql语言(基础一)
- Go language learning diary [XXXI] interaction between golang and PgSQL
- PostgreSQL determines whether it is empty coalesce
- Castor realizes high-throughput analysis of large-scale cloud assembly through polygonica 3D engine, and hoops exchange helps it read CAD data files
- OSPF特殊区域综合实验
猜你喜欢
随机推荐
Buu misc advanced
OSPF special area comprehensive experiment
继承的详解
备战攻防演练,这里有一张腾讯安全重保布防图!
《PyTorch深度学习实践》-B站 刘二大人-day2
flink sql 可以查询 clickhouse 吗
牛客网刷题1【最小步数Fibonacci数列】
Implementation of MATLAB mixer
【单片机仿真项目】外部中断0和1分别通过不同触发方式控制二极管
Sparse array (sparse)
云主机性能测试方案
MySQL join和索引
Pytorch deep learning practice-b station Liu erden-day1
会议OA项目之项目简介&会议发布
cpd配准存在的问题
DOM operation of JS - event chain (bubble target capture)
[learning notes, dog learning C] deeply understand arrays and pointers
Report design tool FastReport online designer v2022.1 full introduction to new changes
[matrix multiplication] external matrix multiplication
PostgreSQL判断是否为空coalesce