数字日期到文本日期PHP [英] Numerical Date To Text Date PHP
本文介绍了数字日期到文本日期PHP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
示例更改
06.04.2010要说2010年4月6日
是否有任何功能已经完成?
解决方案
查看这些PHP函数,一起使用,我想你会得到你想要的东西:
ie:
$ mydate = strtotime('06 .04.2010');
echo date('F jS Y',$ mydate);
Hey, I'm just wondering how to convert a numerical date into text format in PHP
Example change
06.04.2010 to say April 6th 2010
Is there any function already made?
解决方案
Check out these PHP functions, used together I think you will get what you're looking for:
i.e.:
$mydate = strtotime('06.04.2010');
echo date('F jS Y', $mydate);
这篇关于数字日期到文本日期PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文