Skip to content
Advertisement

Tag: weekday

How to convert numbers to day of the week name?

My code for reference: I need the numbers stored within this array to be converted to weekday names, for example: 1 = Sunday. I would also like to know if this can be done natively in PHP, or will it be necessary to use a library? Answer I think with “with everyone’s” you want to create the array with the

Advertisement