Home  >  Article  >  Backend Development  >  有没有实现这样功能的相关数组函数?该如何处理

有没有实现这样功能的相关数组函数?该如何处理

WBOY
WBOYOriginal
2016-06-13 13:49:52752browse

有没有实现这样功能的相关数组函数?
$a0 =array(9,7,8,6,5,8,3,5,11,5);


就是数组里的值都减去一个当前数组值小于的数的函数?

------解决方案--------------------
array_map

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn