How to print week day in php
switch case real time example in php
switch case
<!DOCTYPE html>
<html>
<body>
<?php
$day = 8;
switch($day){
case 1;
echo "Monday";
exit;
case 2;
echo "Tueshday";
exit;
case 3;
echo "Wednesday";
exit;
case 4;
echo "Thusday";
exit;
case 5;
echo "Friday";
exit;
case 6;
echo "Saturday";
exit;
case 7;
echo "Sunday";
exit;
default:
echo "Please Enter Valid Number / Day Not Found";
exit;
}
?>
</body>
</html>
Thanks you for commenting your questions. I will see question and respond you.