Home  >  Article  >  Backend Development  >  Display current date with PHP_PHP tutorial

Display current date with PHP_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 16:58:32744browse

Put the following code into the designated display location of the web page:


$now_time = time();

$time = gmdate("M d Y", mktime($now_time));

echo $time;

?>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/631410.htmlTechArticlePut the following code into the specified display position of the web page: ?php $now_time = time(); $time = gmdate (M d Y, mktime($now_time)); echo $time; ?...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn