I have this multi dimentional array:
{"sunday":{"open_a":null,"close_a":null,"open_b":null,"close_b":null},
"monday":{"open_a":"09:00:00","close_a":"09:30:00","open_b":null,"close_b":null},
"tuesday":{"open_a":"10:00:00","close_a":"12:30:00","open_b":null,"close_b":null},
"wednesday":{"open_a":"10:00:00","close_a":"13:00:00","open_b":null,"close_b":null},
"thursday":{"open_a":"10:00:00","close_a":"13:30:00","open_b":null,"close_b":null},
"friday":{"open_a":"11:00:00","close_a":"12:30:00","open_b":null,"close_b":null},
"saturday":{"open_a":null,"close_a":null,"open_b":null,"close_b":null}}
each weekday corresponds to another array in it…so,I want to push an additional member to this array and do something like that:
{"sunday":{"open_a":null,"close_a":null,"open_b":null,"close_b":null,"holiday":"yes"},
"monday":{"open_a":"09:00:00","close_a":"09:30:00","open_b":null,"close_b":null,"holiday":"no"},
...}
As you see I added another member(holiday).
How am I going to do it…I have tried various foreach array push combinations to achieve it.
I do not want to post them…there is no need.