Код: Выделить всё
foreach ($sam as $key => $sa) {
foreach ($sa as $s) {
echo $s['type'];
}
}
Код: Выделить всё
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)
Предупреждение: неправильное смещение строки 'type'
Можете ли вы помочь мне отобразить значения типа?
Подробнее здесь: https://stackoverflow.com/questions/342 ... a-2d-array
Мобильная версия