how can I get last week\' date range in php ?
see my codes bellow:
You can do this way.
First get the current timestamp and subtract the no.of days you want.
$curTime = time(); echo date("Y-m-d",$curTime); echo ""; echo date("Y-m-d",($curTime-(60*60*24*7)));