Home  >  Article  >  php教程  >  PHP中的问题!

PHP中的问题!

WBOY
WBOYOriginal
2016-06-06 19:40:451119browse

echo date("l dS of F D Y h:i:s A"),"br"; 怎么输出结果是:Friday 09th 2012f March Fri 2012 07:45:20 AM 而我要的结果是:Friday 09th of March Fri 2012 07:45:20 AM 注意看红色的地方,怎样才能让浏览器输出的是一个 of ,而不是一个 format字符 呢?

echo date("l dS of F D Y h:i:s A"),"
";

怎么输出结果是:Friday 09th 2012f March Fri 2012 07:45:20 AM

而我要的结果是:Friday 09th of March Fri 2012 07:45:20 AM

注意看红色的地方,怎样才能让浏览器输出的是一个“of” ,而不是一个format字符呢?

还有,得到的时间为什么是早上的时间,而不是当前时间呢?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn