Home > Backend Development > PHP Tutorial > php循环的一个有关问题

php循环的一个有关问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 13:23:33
Original
950 people have browsed it

php循环的一个问题
有这样一个数组 

PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->Array
(
    [0] => Array
        (
            [id] => 1
            [name] => ~core
            [title] => 项目
            [_child] => Array
                (
                    [0] => Array
                        (
                            [id] => 2
                            [name] => home
                            [title] => 主页分组
                            [_child] => Array
                                (
                                    [0] => Array
                                        (
                                            [id] => 3
                                            [name] => index
                                            [title] => 首页模块
                                            [_child] => Array
                                                (
                                                    [0] => Array
                                                        (
                                                            [id] => 5
                                                            [name] => index
                                                            [title] => 项目首页
                                                        )

                                                )

                                        )

                                    [1] => Array
                                        (
                                            [id] => 4
                                            [name] => user
                                            [title] => 用户模块
                                            [_child] => Array
                                                (
                                                    [0] => Array
                                                        (
                                                            [id] => 6
                                                            [name] => index
                                                            [title] => 用户首页
                                                        )

                                                    [1] => Array
                                                        (
                                                            [id] => 7
                                                            [name] => login
                                                            [title] => 登陆首页
                                                        )

                                                    [2] => Array
                                                        (
                                                            [id] => 8
                                                            [name] => logout
                                                            [title] => 登出
                                                        )

                                                )

                                        )

                                )

                        )

                    [1] => Array
                        (
                            [id] => 9
                            [name] => company
                            [title] => 公司分组
                            [_child] => Array
                                (
                                    [0] => Array
                                        (
                                            [id] => 11
                                            [name] => index
                                            [title] => 公司模块
                                            [_child] => Array
                                                (
                                                    [0] => Array
                                                        (
                                                            [id] => 12
                                                            [name] => pub
                                                            [title] => 测试
                                                        )

                                                )

                                        )

                                )

                        )

                    [2] => Array
                        (
                            [id] => 10
                            [name] => user
                            [title] => 用户分组
                            [_child] => Array
                                (
                                    [0] => Array
                                        (
                                            [id] => 13
                                            [name] => client
                                            [title] => 业务管理
                                            [_child] => Array
                                                (
                                                    [0] => Array
                                                        (
                                                            [id] => 16
                                                            [name] => index
                                                            [title] => 业务增加页
                                                        )

                                                )

                                        )

                                    [1] => Array
                                        (
                                            [id] => 14
                                            [name] => knowledge
                                            [title] => 文章首页
                                            [_child] => Array
                                                (
                                                    [0] => Array
                                                        (
                                                            [id] => 15
                                                            [name] => pub
                                                            [title] => 文章发布
                                                        )

                                                )

                                        )

                                )

                        )

                )

        )

)

 <div class="clear">
                 
              
              
        
            </div>
Copy after login
Related labels:
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
Latest Issues
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template