douxiuyu2028 2015-03-07 10:06
浏览 50

如何使用PHP将当前时间设置为静态变量?

I need to set the current date and time in static variable.

I need to insert the 50 records into database table. Here,I need to insert the current date and time. Then, I need to set the current date and time of the 50 records are same. I used this  date('Y-m-d H:i:s'); format. This format will change every minutes and seconds.

How to I do. Please help me.

  • 写回答

1条回答 默认 最新

  • doubingqi5829 2015-03-07 10:10
    关注
      $date = date('Y-m-d H:i:s')
    

    then use this variable,for create records. All records will have same time.

    评论

报告相同问题?

悬赏问题

  • ¥15 用matlab写代码
  • ¥30 motoradmin系统的多对多配置
  • ¥15 求组态王串口自定义通信配置方法或代码?
  • ¥15 实验 :UML2.0 结构建模
  • ¥20 用vivado写数字逻辑实验报告撰写,FPGA实验
  • ¥15 为什么shp文件会有这种小方块?
  • ¥15 ecplise在连接数据库时显示加载驱动成功但是数据库连接失败
  • ¥15 visionmaster启动失败,提示为“机器不满足授权而被禁用”
  • ¥15 IDEA中圈复杂度如何具体设置
  • ¥50 labview采集不了数据