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.<
switch ($day) { case 0 : echo "Monday"; break;//if $day = 0 it will print Monday case 1 : echo "Tuesday"; break; case 2 : echo "Wednesday"; break; }