本文介绍了显示上个月的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



希望很简单。有人可以提供上个月显示

的代码吗?

我不想要从12月到10月的-3。它需要每个月工作
而不需要修改。


非常感谢

Sam

解决方案



Sam,


我不确定你要求的是什么。你能澄清一下这个吗?


-

==================

删除x来自我的电子邮件地址

Jerry Stuckle

JDS计算机培训公司


==================




Sam,


我不确定你要的是什么。你能澄清一下这个吗?


-

==================

删除x来自我的电子邮件地址

Jerry Stuckle

JDS计算机培训公司

jstuck ... @ attglobal.net

==================



Jerry,


我我正在寻找一个简单的PHP代码,它将在上个月写完



所以例如,如果它现在被使用,它将显示文本

''十月''。

如果它在四月使用,它会显示''三月'等等。

对不起我不是不太清楚。


谢谢

Sam



Sam,

我是不确定你要求的是什么。你能澄清一下这个吗?

==================
删除x来自我的电子邮件地址
Jerry Stuckle
JDS计算机培训公司
jstuck ... @ attglobal.net
=============== ===



Jerry,


我正在寻找一段简单的PHP代码来编写

上个月全部。

例如,如果现在使用它,它将显示文本

''十月''。

如果它在四月使用,它会显示''三月'等等。

对不起,我不是很清楚。


谢谢

Sam



好​​的,可能是这样的:


回音日期(F,strtotime(-1个月));


-

========= =========

删除x来自我的电子邮件地址

Jerry Stuckle

JDS计算机培训公司


==================



Hopefully an easy one. Can someone please supply me with the code for
displaying the previous month?
I do not want just -3 from December for October. It needs to work each
month without modifying.

Many thanks
Sam

解决方案

Sam,

I''m not sure what you''re asking for. Can you clarify this a little more?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================



Sam,

I''m not sure what you''re asking for. Can you clarify this a little more?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
[email protected]
==================

Jerry,

I am looking for a simple piece of PHP code that will write the
previous month in full.
So for example, if it was used now, it would display the text
''October''.
If it was used in April, it would display ''March'', etc.
Sorry I wasn''t very clear.

Thanks
Sam


Sam,

I''m not sure what you''re asking for. Can you clarify this a little more?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
[email protected]
==================


Jerry,

I am looking for a simple piece of PHP code that will write the
previous month in full.
So for example, if it was used now, it would display the text
''October''.
If it was used in April, it would display ''March'', etc.
Sorry I wasn''t very clear.

Thanks
Sam

OK, maybe something like:

echo date("F",strtotime("-1 month"));

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================


这篇关于显示上个月的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 00:21