smarty 遍历多维数组有关问题

WBOY
Release: 2016-06-13 12:35:14
Original
905 people have browsed it

smarty 遍历多维数组问题

本帖最后由 swordnorth 于 2013-10-21 10:10:51 编辑

Array
(
    [0] => Array
        (
            [0] => 1
            [id] => 1
            [1] => 设置
            [name] => 设置
            [2] => 0
            [parentid] => 0
            [child] => Array
                (
                    [0] => Array
                        (
                            [0] => 20
                            [id] => 20
                            [1] => 管理员管理
                            [name] => 管理员管理
                            [2] => 1
                            [parentid] => 1
                            [child] => Array
                                (
                                    [0] => Array
                                        (
                                            [0] => 23
                                            [id] => 23
                                            [1] => 角色管理
                                            [name] => 角色管理
                                            [2] => 20
                                            [parentid] => 20
                                        )

                                    [1] => Array
                                        (
                                            [0] => 22
Copy after login
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!