--- <?php function getNextBusinessDay($date_start, $count) { $holiday = array( "2011-07-18" => "海の日"); $date = clone $date_start; print $date->format("Y-m-d")."の".$count."営業日後を調べます\n"; $oneday = new DateInterval("P1D"); while ($count > 0) { $date->add($oneday); $str = $date->format("Y-m-d"); $w = $date->format("w"); if ($w < 1 #日曜 || $w > 5 #土曜 || isset($holiday[$str])) { #祝日 print $date->format("