Thứ Ba, 23 tháng 4, 2013

Lấy ngày tháng trong php

$now = getdate();
    $currentTime = $now["hours"] . ":" . $now["minutes"] . ":" . $now["seconds"];
    $currentDate = $now["mday"] . "-" . $now["mon"] . "-" . $now["year"];
    //echo $currentDate;
    $currentWeek = $now["wday"] . "."; 

Không có nhận xét nào:

Đăng nhận xét