显示上个月 [英] Display previous month

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

问题描述



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

的代码吗?

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


非常感谢

Sam

解决方案

sa*****@hotmail.com 写道:


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

的代码吗?

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


非常感谢

Sam



Sam,


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


-

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

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

Jerry Stuckle

JDS计算机培训公司
js ******* @ attglobal.net

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


11月5日12:57,Jerry Stuckle< jstuck ... @ attglobal.netwrote:


samh ... @ hotmail.com写道:


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

的代码吗?

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


非常感谢

Sam



Sam,


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


-

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

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

Jerry Stuckle

JDS计算机培训公司

jstuck ... @ attglobal.net

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



Jerry,


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



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

''十月''。

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

对不起我不是不太清楚。


谢谢

Sam


sa ***** @ hotmail.com 写道:


On 5 Nov,12:57,Jerry Stuckle< jstuck ... @ attglobal.netwrote:


> samh ... @ hotmail.com写道:


>>希望是一个简单的。有人可以请我提供上个月显示的代码吗?
我不想要从12月到10月的-3。它需要每个月工作而不需要修改。
非常感谢
Sam


Sam,

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

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



Jerry,


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

上个月全部。

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

''十月''。

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

对不起,我不是很清楚。


谢谢

Sam



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


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


-

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

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

Jerry Stuckle

JDS计算机培训公司
js ******* @ attglobal.net

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



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

解决方案

sa*****@hotmail.com wrote:

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
==================


On 5 Nov, 12:57, Jerry Stuckle <jstuck...@attglobal.netwrote:

samh...@hotmail.com wrote:

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.
jstuck...@attglobal.net
==================

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


sa*****@hotmail.com wrote:

On 5 Nov, 12:57, Jerry Stuckle <jstuck...@attglobal.netwrote:

>samh...@hotmail.com wrote:

>>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.
jstuck...@attglobal.net
==================


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
==================


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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆