How to get the dates for perticular week using for loop(7days)
for example,
$date_start = '2012/09/03';
i want to get the feature dates ie. '2012/09/04','2012/09/05','2012/09/06'...'2012/09/08' for a week.
I got the code, but it is taking long time to execute:
while(strtotime($start_date)<= strtotime($end_date)){}
here is the solution you can do it like
here is live working example
Demo
Or just visit the link .. hope it helps
php future Date in loop