=2;$i--){ $date = date('Y-m-d',strtotime('-'.$i.' day')); ChannelBillsService::generate_bills($date); } } }