当前位置:网站首页>php数组排序
php数组排序
2022-07-22 06:28:00 【大得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);
运行结果:
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” }
边栏推荐
- unity3d-GameObject组件
- Unity postprocess screen post-processing
- Comparison between symmetric encryption and asymmetric encryption
- -bash-4.2$
- What if win11 encounters a problem and needs to restart?
- 【C】 Branch and loop statements
- matlab混频器的实现
- Li Hongyi machine learning 2020--p20 & 21 RNN
- JS的DOM操作——事件代理
- NFTFi赛道版图概览
猜你喜欢
随机推荐
信息安全CISP认证-大家关心哪些问题?
Pytorch deep learning practice-b station Liu erden-day1
354. Russian Doll envelope problem
SQL language (foundation 1)
会议OA项目
Musk's "face changing": Q2 sold 75% BTC to cash out nearly $1billion
How to reinstall win11 system online with one click?
Solidworks基础特征你了解多少?| 拉伸特征的4种方法
Pytorch deep learning practice-b station Liu erden-day2
大佬们,flink sql job往yarn提交作业,报不能执行sql错误,本地执行不报错,服务器
flinksql 的task可以监控是否中断吗?
稀疏数组(sparse)
中国企业管理软件走向全球化国际化的路径探讨
Wechat marketing strategy, what are the advantages of wechat marketing?
How to solve the problem of uncontrollable win11 flashing white screen?
FPGA之红外遥控
网络安全学习(千锋网络安全笔记)5--NTFS安全权限
Castor realizes high-throughput analysis of large-scale cloud assembly through polygonica 3D engine, and hoops exchange helps it read CAD data files
sqlmap的打开方式以代码的形式打开不是以图像形式打开
14 multithread 1