डाउनलोड पी.डी.एफ. ई-बुक्स
PHP - Switch Case Statement

विवरण :

कोई विवरण नहीं है |


सोर्स कोड :

$Day='D';

switch($Day){

case 'A' :
echo "Today is Sunday";
break;

case 'B' :
echo "Today is Monday";
break;

case 'C' :
echo "Today is Tuesday";
break;

case 'D' :

case 'E' :
echo "Today is Wednesday";
break;

case 'F' :
echo "Today is Thurday";
break;

case 'G' :
echo "Today is Friday";
break;

case 'H' :
echo "Today is Saturday";
break;

default :
echo "Day is Not Found";
}

आउटपुट :

Today is Wednesday