解决方案 »
- php二维数组排序
- php登陆session存值在另外一个页面怎么拿不到值?
- 租一个日PV<=100000服务器一般要多少钱哟
- 已经初始化类,还是提示Call to a member function query
- 怎样计算php里的时间差
- 发邮件失败
- set_time_limit()的疑问
- php可以实现拖拉图片和放打图片的功能么
- php连mssql,php.ini or httpd.conf需要改动什么地方?
- echo "<meta http-equiv=\"refresh\" content=\"0;url=manager.php\" />"
- 请问使用log4php日志记录日期报错
- php namespace与use的问题
$t = is_numeric($s) ? $s : strtotime($s);
$w = date('w', $t);
return array(
date('Y-m-d', strtotime("-$w day",$t)),
date('Y-m-d', strtotime((6-$w).' day', $t))
);
}Array
(
[0] => 2012-02-26
[1] => 2012-03-03
)