实例 格式化本地日期和时间,并返回格式化的日期字符串: <?php // Prints the dayecho date("l") . "<br>";// Prints the day, date, month, year, time, AM or PMecho date("l jS of F Y h:i:s A");?> 运行实例 » 定义和用法 date() 函数格式化本地日期和时间,并返回格式化的日期字符串. 语法…
实例 格式化本地日期和时间,并返回格式化的日期字符串: <?php // Prints the day echo date("l") . "<br>"; // Prints the day, date, month, year, time, AM or PM echo date("l jS of F Y h:i:s A"); ?> 定义和用法 date() 函数格式化本地日期和时间,并返回格式化的日期字符串. 语法 dat…