Home  >  Article  >  Backend Development  >  在索引移动到另一个目录时,下面两种格式有什么区别?求解!

在索引移动到另一个目录时,下面两种格式有什么区别?求解!

WBOY
WBOYOriginal
2016-06-13 12:40:38977browse

在目录移动到另一个目录时,下面两种格式有什么区别?求解!!
(移动目录)
if ( !empty( $testCategoryData) ) {
$data[0] = array_shift($testCategoryData);
$data[0]['children'] = $testCategoryData;
}


 (移动用例)
$data = array();
$data[0]= $testCategoryData[0]; 
        for ( $index = 1; $index         $data[0]['children'][$index-1] = $testCategoryData[$index]; 
        } 

移动开发 php??? php 移动目录
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