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 you simply want to convert 0 to "Monday", 1 to "Tuesday", etc. use an array.
$day_of_week = array ( 0 => 'Monday', 1 => 'Tuesday', 2 => 'Wednesday', . 6 => 'Sunday' ); $day = 2; echo $day_of_week[$day];