我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何在php中获取Next_month名称

this is my code

$customer->where(DATE_FORMAT(month,'%m')=date('m',strtotime('+1 month')));

how to get next month name ,i have try it. but i got the error this Can't use function return value in write context

Just do this, You can get the next month from here and use it in where you want.

Online Test

$next_month = date('F',strtotime('next month')); // June

If you know the name of the last month then use-

$next_month = date('F',strtotime('June next month')); // July

近期文章

  • Codeigniter Url问题:HTTP 404
  • 我无法连接到我的数据库
  • 发送输入禁用数据
  • isset($ _ SESSION ['id'])工作不正常[关闭]
  • 在哪里学习用于创建网站的php语言[关闭]
  • 如何在php中动态生成一些值? [关闭]
  • PHP如何在数学运算中绕过字符串?
  • PHP从同一个类中的另一个函数调用一个函数
  • 类无法正确获取对象的值
  • Php包含在.css中[关闭]
  • 登录时Php Javascript警报
  • 为什么这不起作用? (php if else)[关闭]
  • 正则表达式在html中找到元素的每个实例[重复]
  • PHP附加if语句阻塞第一个
  • 通过PHP的CSV标头?
  • 使用php将每个数组元素发送到数据库
  • 为什么这不起作用? :/ [关闭]
  • 计数的PHP对象[关闭]
  • 用Jquery调用PHP [关闭]
  • PHP邮件功能不发送[关闭]

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华