星期一, 1月 30, 2012

將PHP日期格式化為中文輸出


$birthday = "1977-12-31";

$array = sscanf($birthday, "%d-%d-%d");

vprintf("生日%d年%d月%d日", $array);

?>

沒有留言: