// The first 1 Kind of writing
$da = date("w");
if( $da == "1" ){
echo " Today is the week 1";
}else if( $da == "2" ){
echo " Today is the week 2";
}else if( $da == "3" ){
echo " Today is the week 3";
}else if( $da == "4" ){
echo " Today is the week 4";
}else if( $da == "5" ){
echo " Today is the week 5";
}else if( $da == "6" ){
echo " Today is the week 6";
}else if( $da == "0" ){
echo " Today is Sunday ";
}else{
echo " You typed it wrong !!";
};
// The first 2 Kind of writing
$ga = date("w");
switch( $ga ){
case 1 : echo " Today is the week 1";break;
case 2 : echo " Today is the week 2";break;
case 3 : echo " Today is the week 3";break;
case 4 : echo " Today is the week 4";break;
case 5 : echo " Today is the week 5";break;
case 6 : echo " Today is the week 6";break;
case 0 : echo " Today is Sunday ";break;
default : echo " You typed it wrong! ";
};
// The first 3 Kind of writing
echo " Today is the week " . mb_substr( " day 123456",date("w"),1,"utf-8" );