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', ), ), ), ),)
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号