- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
function getNextDay($_arr_date, $day)
{
$_arr_result = array();
$str_result = '';
$str_result = substr($_arr_date[0], 0, 2);
$str_result .= '-';
$str_result .= substr($_arr_date[0], 2, 2);
$str_result .= '-';
$str_result .= substr($_arr_date[0], 4, 4);
$arrDate = explode('-', $str_result);
$_arr_result[0] = date('d-m-Y', mktime(0, 0, 0, $arrDate[1], $arrDate[0] + $day, $arrDate[2]));
$_arr_result[1] = date('d-m-Y', mktime(0, 0, 0, $arrDate[1], ($arrDate[0] + $day + 1), $arrDate[2]));
$_arr_result[2] = date('Y-m-d', mktime(0, 0, 0, $arrDate[1], $arrDate[0] + $day, $arrDate[2])); //for BD
$_arr_result[3] = date('Y-m-d', mktime(0, 0, 0, $arrDate[1], ($arrDate[0] + $day + 1), $arrDate[2])); //for BD
return $_arr_result;
}