1 $date = date(‘Y-m-d‘, strtotime(‘-30 days‘));
获取近30天的数据的时间方式
原文:http://www.cnblogs.com/luojie-/p/7511942.html