Blogger Information
Blog 47
fans 0
comment 2
visits 102690
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
php获取本周的开始、结束时间戳
拾一枝樱花的博客
Original
1243 people have browsed it
  1. $n = date("Y-m-d");
  2. $w=date('w',strtotime($n));
  3. $beginweek=strtotime("$n -".($w ? $w - 1 : 6).' days');
  4. $endweek=$beginweek + 86400*7-1;
  5. echo $beginweek;
  6. echo $endweek;
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post