[英]How to get Day Name from date in PHP?
How to get Day Name from date in PHP? 如何从PHP中获取日期名称?
$dateValue='2015/07/15';
$dayName=date("D", strtotime($dateValue);
Hi, I want exact day name from the above given sample date, please help me. 嗨,我想从上面给出的样品日期确切的日期名称,请帮助我。
您需要使用l
作为第一个参数。
echo date('l', strtotime($dateValue));
You can use the following code, 您可以使用以下代码,
echo date('l', strtotime($dateValue));
for more details, refer following link: 有关详细信息,请参阅以下链接:
http://www.w3schools.com/php/func_date_date.asp
http://www.w3schools.com/php/func_date_date.asp
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.