I want to get Monday, Tuesday, Wednesday... using php function.
I have only numeric values for those like 1,2,3..7 where
1 = Monday 2 = Tuesday ... 7 = Sunday.<
If all you have is a numeric value and not a complete timestamp, by far the easiest way is this:
$weekdays = array('Monday', 'Tuesday', 'Wednesday', ...); $weekday = 0; echo $weekdays[$weekday];