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

如何使用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.

    评论

报告相同问题?