Hi I have such a structure array. I would like compare in loop such a condition.
if(dataInto[0]>=MyDataTypeFromInput && dataOut[0]<=MyDataTypeFromInput && room[0]==MyIdRoom) {...}
instead index 0, this have to work in loop foreach. So compare index [0] with index[0] [1] with [1] etc
How do this?
[
'dataInto' => [
0 => '2016-07-14 14:50'
1 => '2016-03-24 14:00'
2 => '2016-03-03 06:30'
]
'room' => [
0 => 13
1 => 14
2 => 14
]
'dataOut' => [
0 => '2016-07-14 18:10'
1 => '2016-03-24 17:20'
2 => '2016-03-03 09:50'
]
]