我需要在静态变量中设置当前日期和时间。
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.
我该怎么办请帮帮我。
答案 0 :(得分:0)
$date = date('Y-m-d H:i:s')
然后使用此变量来创建记录。所有记录都有相同的时间。