echo date('Y-m-01',time()).'----'.date('Y-m-t',time()) 转载自:http://www.9958.pw/post/php_date