Heres the info I have:
THese numbers represent days. 0: Sunday, 6: Saturday, etc.
What i want to do is take a set of days, lets use 02346 and turn it into human readable. It would read like so:
"Sunday, Tuesday through Thursday, and Saturday."
I have made an ugly loop to do this. It turns the string into an array, goes through the array, and compares the next array value to the current one to see if it within a given range, then resetting the array position.
it works, but its ugly. Does anyone have any ideas on how to do this a little shorter way? I was hoping theres be some regular expression or preg_replace way of doing this or something, but im not tallented enough to do this.