ホームページ >バックエンド開発 >PHPチュートリアル >Smarty テンプレートの配列解析に関する問題
Smarty テンプレートの配列解析問題
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->array ( 'id' => 1, 'pid' => 0, 'name' => '一级1', 'child' => array ( 2 => array ( 'id' => 2, 'pid' => 1, 'name' => '二级11', ), 3 => array ( 'id' => 3, 'pid' => 1, 'name' => '二级12', ), 9 => array ( 'id' => 9, 'pid' => 1, 'name' => '二级13', 'child' => array ( 4 => array ( 'id' => 4, 'pid' => 9, 'name' => '三级11', 'child' => array ( 5 => array ( 'id' => 5, 'pid' => 4, 'name' => '四级13', ), 7 => array ( 'id' => 7, 'pid' => 4, 'name' => '四级11', ), 8 => array ( 'id' => 8, 'pid' => 4, 'name' => '四级12', 'child' => array ( 10 => array ( 'id' => 10, 'pid' => 8, 'name' => '五级分类', 'child' => array ( 11 => array ( 'id' => 11, 'pid' => 10, 'name' => '六级分类', ), ), ), ), ), ), ), 6 => array ( 'id' => 6, 'pid' => 9, 'name' => '三级21', ), ), ), ), )