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

WBOY
Release: 2016-06-13 12:40:38
Original
999 people have browsed it

在目录移动到另一个目录时,下面两种格式有什么区别?求解!!
(移动目录)
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 移动目录
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template