PHP day of the week acquisition code:
- date("l"); //Data can get the English day of the week such as Sunday
- date("w"); //This can get the numeric day of the week such as 123, note that 0 is Sunday
-
-
Copy code
Get the Chinese day of the week:
- $weekarray=array("日","一","二","三","四","五","六" ; ","一","二","三","四","五","六");
- echo "week".$weekarray[date("w","2011-11-11") ];
-
-
Copy code
|