mirror of
https://github.com/php/php-src.git
synced 2025-01-26 21:54:16 +08:00
21 lines
629 B
PHP
21 lines
629 B
PHP
--TEST--
|
|
cal_days_in_month()
|
|
--SKIPIF--
|
|
<?php include 'skipif.inc'; ?>
|
|
--FILE--
|
|
<?php
|
|
$num = cal_days_in_month(CAL_GREGORIAN, 8, 2003);
|
|
echo "There are $num days in August 2003\n";
|
|
$num = cal_days_in_month(CAL_GREGORIAN, 2, 2003);
|
|
echo "There are $num days in February 2003\n";
|
|
$num = cal_days_in_month(CAL_GREGORIAN, 2, 2004);
|
|
echo "There are $num days in February 2004\n";
|
|
$num = cal_days_in_month(CAL_GREGORIAN, 12, 2034);
|
|
echo "There are $num days in December 2034\n";
|
|
?>
|
|
--EXPECT--
|
|
There are 31 days in August 2003
|
|
There are 28 days in February 2003
|
|
There are 29 days in February 2004
|
|
There are 31 days in December 2034
|