下午好。我对php很新,如果我的问题对于这个论坛来说有点过分,那么请提前道歉。
我有一个PHP关联数组,其中包含一些我希望作为表回显的嵌套子数组。这是数组:
Array
(
[message] => Your request was executed successfully.
[errors] => [warnings] => Array ( )
[request_timestamp] => 04-08-2016 21:43:06
[response_timestamp] => 04-08-2016 21:43:06
[request_id] => abcd1234
[branch] => Array
(
[location_id] => 157499
)
[property] => Array
(
[0] => Array
(
[agent_ref] => WR37EF-453625
[update_date] =>
[client_id] => 60462053
[channel] => 2
)
[1] => Array
(
[agent_ref] => Prop950
[update_date] => 04-08-2016
[client_id] => 60457613
[channel] => 2
)
[prop2] => Array
(
[agent_ref] => WR40rp-632482
[update_date] => 04-08-2016
[client id] => 60461789
[channel] => 2
)
[prop3] => Array
(
[agent_ref] => WR38UU-243564
[update_date] => 04-08-2016
[id] => 60461807
[channel] => 2
)
[prop4] => Array
(
[agent_ref] => WR3HMWR3HM-145622
[update_date] => 04-08-2016
[client id] => 60462014
[channel] => 2
)
)
)
我正在尝试[并且很难实现]是一个表格(以非表格标题区域开头),格式如下......
标题区域: -
后跟......
表设计其中: -
我知道我可能需要使用foreach循环方法。但是以标题/表格格式从嵌套数组中取出键值对我需要我真的很挣扎。
非常感谢任何帮助或指导。
谢谢
答案 0 :(得分:1)
这样的事情:
ng new ngadmin