Home > Backend Development > PHP Tutorial > smarty 遍历多维数组有关问题

smarty 遍历多维数组有关问题

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

smarty 遍历多维数组问题

本帖最后由 swordnorth 于 2013-10-21 10:10:51 编辑
<br>
Array<br>
(<br>
    [0] => Array<br>
        (<br>
            [0] => 1<br>
            [id] => 1<br>
            [1] => 设置<br>
            [name] => 设置<br>
            [2] => 0<br>
            [parentid] => 0<br>
            [child] => Array<br>
                (<br>
                    [0] => Array<br>
                        (<br>
                            [0] => 20<br>
                            [id] => 20<br>
                            [1] => 管理员管理<br>
                            [name] => 管理员管理<br>
                            [2] => 1<br>
                            [parentid] => 1<br>
                            [child] => Array<br>
                                (<br>
                                    [0] => Array<br>
                                        (<br>
                                            [0] => 23<br>
                                            [id] => 23<br>
                                            [1] => 角色管理<br>
                                            [name] => 角色管理<br>
                                            [2] => 20<br>
                                            [parentid] => 20<br>
                                        )<br>
<br>
                                    [1] => Array<br>
                                        (<br>
                                            [0] => 22 <div class="clear">
                 
              
              
        
            </div>
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