This question already has an answer here:
I need to set up a function which will convert random number between 1 and 7 into days of a week for example if the random numbers appears to be "1" it should display "Monday" and same goes for "2" which will display "Tuesday" etc. Does anyone here know the simple way of doing it ? Also later on in the second task i'll have to make all the days of the week display from Monday until a random day of the week(1-7) for example "Friday". Im pretty new to PHP and this got me so confused.
</div>