关于三维数组取值问题

浏览:913 发布日期:2018/06/01 分类:求助交流 关键字: 三维数组 取值问题 渲染数据
array(5) {
  [0] => array(3) {
    ["id"] => int(1)
    ["name"] => string(12) "小白必读"
    ["posts"] => array(5) {
      [0] => array(14) {
        ["id"] => int(94)
        ["type_id"] => int(1)
        ["author"] => string(6) "小美"
        ["post"] => string(52) "<p>
                            这里写你的初始化内容                        </p>"
        ["desc"] => NULL
        ["tags_id"] => string(1) "1"
        ["create_time"] => string(19) "2018-05-06 15:29:17"
        ["update_time"] => string(19) "1970-01-01 08:00:00"
        ["author_id"] => NULL
        ["look"] => int(130)
        ["title"] => string(12) "这是标题"
        ["status"] => string(0) ""
        ["post_img_path"] => string(72) "static/uploads/image/title/20180506/c56f094d61dc6b2f626e36471c4f048e.jpg"
        ["total_tags"] => int(1)
      }
请问如何正确取值posts里面的数据
最佳答案
评论( 相关
后面还有条评论,点击查看>>