ฟังก์ชั่น jdtounix()
ความหมายของฟังก์ชั่นและการใช้งาน
การแปลงจำนวนวันในระบบ Julian Day เป็นเวลาในระบบ Unix Timestamp ด้วยฟังก์ชั่น jdtounix()
รูปแบบการเขียน (Syntax)
int jdtounix ( int $jday )
ตัวอย่างที่ 1
<?php
echo jdtounix ( 0 );
?>
ตัวอย่างที่ 2
<?php
/* Simple way to get current month name */
$mons = array(1 => "Jan", 2 => "Feb", 3 => "Mar", 4 => "Apr", 5 => "May", 6 => "Jun", 7 => "Jul", 8 => "Aug", 9 => "Sep", 10 => "Oct", 11 => "Nov", 12 => "Dec");
$date = getdate();
$month = $date['mon'];
$month_name = $mons[$month];
echo $month_name; // Displays the current month
?>