首頁 > 後端開發 > php教程 > php循环的一个有关问题

php循环的一个有关问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
發布: 2016-06-13 10:35:48
原創
802 人瀏覽過

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>
登入後複製
相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
最新問題
$value -> 成績 = $value -> 成績 -> 姓名;
來自於 1970-01-01 08:00:00
0
0
0
輸入<html><>後面是怎麼變成<html></html>的
來自於 1970-01-01 08:00:00
0
0
0
javascript - js中map實作中 var len = O.length >>> 0;
來自於 1970-01-01 08:00:00
0
0
0
<title></title> 這倆代表啥
來自於 1970-01-01 08:00:00
0
0
0
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板