2
我想呼应与type
关键的数组值,这里是我的代码,多维数组格式化
foreach ($sam as $key => $sa) {
foreach ($sa as $s) {
echo $s['type'];
}
}
,这是阵列$sam
array (size=1)
0 =>
array (size=5)
'type' => string 'days' (length=4)
'bookable' => string 'no' (length=2)
'priority' => int 10
'from' => string '1' (length=1)
'to' => string '1' (length=1)
我的serier的内容每行代码结果警告:非法字符串偏移“类型”,我不知道为什么?你能帮我回复type
谢谢。