【发布时间】:2010-09-02 10:07:55
【问题描述】:
你好,有人可以用非标准格式解释 strtotime 函数的行为。
echo date("d-m-Y",strtotime('02-12-10')) .'<br>'; //10-12-2002
echo date("d-m-Y",strtotime('09.09.10')) .'<br>'; //02-09-2010 --How this is interpreted?
echo date("d-m-Y",strtotime('02-12-2010')) .'<br>'; //02-02-2010
echo date("d-m-Y",strtotime('09.09.2010')) .'<br>'; //09-09-2010
我想将 dd.mm.yy(09.09.10) 格式的字符串转换为日期时间格式。
【问题讨论】:
标签: php