Hmm. Let's try a few diagnostics:
In the loop, each $lines[$i] and also do print_r($arrline) - let's make sure they're what they should be.
If that's all looking good, then print_r($day) at the end to see what you've ended up with.
And one last question, before I forget - you do know that arrays are indexed starting at 0? Just checking: I ask only because your example sample output starts at 1, and only because making that mistake in the code would mean that $arrLine[2] should be $arrLine[1] and $arrLine[6] should be $arrLine[5]; I wouldn't have mentioned it otherwise.