Home  >  Article  >  Backend Development  >  PHP多维数组*键名*重命名解决思路

PHP多维数组*键名*重命名解决思路

WBOY
WBOYOriginal
2016-06-13 12:42:091008browse

PHP多维数组****键名****重命名
$a = array(127 => array(0 => dog,1 => cat,2 => duck),854 => array(0 => fish,1 => monkey,2=>bear))




请将“127”,“854”重命名成“0”,“1”。

不知道是不是有办法,谢谢各位!!!

PHP Color
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