Dapatkan Perbezaan Hari Dengan PHP on April 01, 2013 in datediff, Pengaturcaraan, php, strtotime with No comments $tarikh_mula = strtotime('2013-05-20');$today = strtotime(date('Y-m-d'));$dateDiff = $tarikh_mula - $today;$fullDays = floor($dateDiff/(60*60*24));echo 'Beza hari antara '.$tarikh_mula.' dan '.$today.' ialah '.$fullDays.' hari.'; Share: Email ThisBlogThis!Share to XShare to Facebook
0 comments:
Post a Comment