I look at the array with print_r
if i select:
– all day, saved array is
( [0] => 0 [1] => 1 [2] => 2 [3] => 3 [4] => 4 [5] => 5 [6] => 6 )
Correct!
– only Monday, saved array is 1
Correct!
– only Sunday, saved array is
( [0] => 0 [1] => 0 )
Error! I expect “0” or ( [0] => 0 )
– only Sunday and Monday, saved array is
( [0] => 0 [1] => 1 )
Correct!
– only Sunday and Tuesday, saved array is
( [0] => 0 [1] => 0 [2] => 2 )
Error!
– only Tuesday, saved array is
( [1] => 0 [2] => 2 )
Error!