Home >Backend Development >PHP Problem >How to output the day of the week in php
How to output the day of the week in php: First create a PHP sample file; then output the current time through the code statement [$s = date('w');echo 'Today is the week:'.$s;] Just the day of the week.
Recommendation: "PHP Video Tutorial"
Use PHP to output the period of the current time and express it with numbers
PHP Enter the day of the week code
<?php //飞鸟慕鱼博客 $s = date('w'); echo '今天是周:'.$s; ?>
PHP gets the Chinese day of the week, PHP gets the day of the week code, PHP gets the day of the week for the specified date, PHP gets the day of the week A few codes
Code running results
Today is week: 3
The above is the detailed content of How to output the day of the week in php. For more information, please follow other related articles on the PHP Chinese website!