PHP cal_info()関数
例
グレゴリオ暦に関する情報を返します。
<?php
print_r(cal_info(0));
?>
定義と使用法
cal_info()関数は、指定されたカレンダーに関する情報を返します。
構文
cal_info(calendar);
パラメータ値
Parameter | Description |
---|---|
calendar | Optional. Specifies a number that indicates which calendar to return information about:
Tip: If the calendar parameter is omitted, cal_info() returns info about all calendars |
技術的な詳細
戻り値: | 次のようなカレンダー要素を含む配列を返します。
|
---|---|
PHPバージョン: | 4.1+ |
変更ログ: | PHP 5.0では、カレンダーパラメータがオプションになりました |
❮PHPカレンダーリファレンス