Let me explain the array bellow:
1, 2 and 3 stand for Monday, Tuesday and Wednesday.
13, 14, and 15 are the days of the month.
And 15:00 – 16:20 (..) are the hours the movies are going to be shown.
Meaning on Monday 13th from 3pm to 4:20pm you can watch “Batman”.
Also on Monday 13th from 6:10pm to 7:30pm you can watch “Misery” … and so on.
$myarray
: array =
1: array =
13: array =
15:00 - 16:20: array =
Movie: string = Batman
18:10 - 19:30: array =
Movie: string = Misery
2: array =
14: array =
15:00 - 16:20: array =
Movie: string = The Avengers
16:20 - 17:50: array =
Movie: string = The Hours
3: array =
15: array =
18:10 - 19:30: array =
Movie: string = Gladiator
Could you please help me to echo this array so you can see the info in it in the following format?:
Monday - 13
15:00 - 16:20 - Batman
18:10 - 19:30 - Misery
Tuesday – 14
15:00 - 16:20 - The Avengers
16:20 - 17:50 - The Hours
Wednesday – 15
8:10 - 19:30 - Gladiator
Thanks a lot!
I’m making an assumption about the true layout of your array, the following will create a
$weekDaysarray to map an integer and a day of the week (I define the keys so you can shift them at any time):This is assuming the array in your example is really in the format: