"zs","age"=>"10","sex"=>"nan"],["name"=>"ls","age"=>"11","sex"=>"nan"],["name"=>"ww","age"=>"12","sex"=>"nv"]]">
时间:2021-07-01 10:21:17 帮助过:31人阅读
[ ["name"=>"zs","age"=>"10","sex"=>"nan"], ["name"=>"ls","age"=>"11","sex"=>"nan"], ["name"=>"ww","age"=>"12","sex"=>"nv"] ], [ ["name"=>"zs","age"=>"10","sex"=>"nan"], ["name"=>"ls","age"=>"11","sex"=>"nan"], ["name"=>"ww","age"=>"12","sex"=>"nv"] ], [ ["name"=>"zs","age"=>"10","sex"=>"nan"], ["name"=>"ls","age"=>"11","sex"=>"nan"], ["name"=>"ww","age"=>"12","sex"=>"nv"] ] ]; echo ''; print_r( $class ); echo '';?>
你这个定义 的是什么?数组吗? 按你的思路应该这样定义。
$class =array( "group1" => (
("name"=>"zs","age"=>"10","sex"=>"nan"),
("name"=>"ls","age"=>"11","sex"=>"nan"),
("name"=>"ww","age"=>"12","sex"=>"nv")
),
(
("name"=>"zs","age"=>"10","sex"=>"nan"),
("name"=>"ls","age"=>"11","sex"=>"nan"),
("name"=>"ww","age"=>"12","sex"=>"nv")
),
(
("name"=>"zs","age"=>"10","sex"=>"nan"),
("name"=>"ls","age"=>"11","sex"=>"nan"),
("name"=>"ww","age"=>"12","sex"=>"nv")
)
)) ;
你这个定义 的是什么?数组吗? 按你的思路应该这样定义。
$class =array( "group1" => (
("name"=>"zs","age"=>"10","sex"=>"nan"),
("name"=>"ls","age"=>"11","sex"=>"nan"),
("name"=>"ww","age"=>"12","sex"=>"nv")
),
(
("name"=>"zs","age"=>"10","sex"=>"nan"),
("name"=>"ls","age"=>"11","sex"=>"nan"),
("name"=>"ww","age"=>"12","sex"=>"nv")
),
(
("name"=>"zs","age"=>"10","sex"=>"nan"),
("name"=>"ls","age"=>"11","sex"=>"nan"),
("name"=>"ww","age"=>"12","sex"=>"nv")
)
)) ;
你的代码要求 php >= 5.4
你这个定义 的是什么?数组吗? 按你的思路应该这样定义。
$class =array( "group1" => (
("name"=>"zs","age"=>"10","sex"=>"nan"),
("name"=>"ls","age"=>"11","sex"=>"nan"),
("name"=>"ww","age"=>"12","sex"=>"nv")
),
(
("name"=>"zs","age"=>"10","sex"=>"nan"),
("name"=>"ls","age"=>"11","sex"=>"nan"),
("name"=>"ww","age"=>"12","sex"=>"nv")
),
(
("name"=>"zs","age"=>"10","sex"=>"nan"),
("name"=>"ls","age"=>"11","sex"=>"nan"),
("name"=>"ww","age"=>"12","sex"=>"nv")
)
)) ;
你的代码要求 php >= 5.4