• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

php循环的一个有关问题

php 搞代码 3年前 (2022-01-24) 15次浏览 已收录 0个评论

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

PHP code

<!---ecms -ecms 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] <span>!本文来源gaodai#ma#com搞*!代#%^码网5</span><pre>搞gaodaima代码

=> 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] => 文章发布 ) ) ) ) ) ) ))


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:php循环的一个有关问题
喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址