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