PHP cal_days_in_month() 함수
예시
지정된 연도 및 달력에 대한 한 달의 일 수를 가져옵니다.
<?php
$d=cal_days_in_month(CAL_GREGORIAN,10,2005);
echo "There was $d days in October 2005";
?>
정의 및 사용
cal_days_in_month() 함수는 지정된 연도 및 달력에 대한 한 달의 일 수를 반환합니다.
통사론
cal_days_in_month(calendar,month,year);
매개변수 값
Parameter | Description |
---|---|
calendar | Required. Specifies the calendar to use. Look at the PHP Calendar Constants |
month | Required. Specifies the month in the selected calendar |
year | Required. Specifies the year in the selected calendar |
기술적 세부 사항
반환 값: | 주어진 연도 및 달력에서 선택한 월의 일 수 |
---|---|
PHP 버전: | 4.1+ |
❮ PHP 캘린더 참조