PHP入门1.4

    xiaoxiao2026-10-07  1

    注释time()函数获取时间戳date()根据时间戳格式化输出代码Example,根据刷新页面更改的秒数来动态更新指向页面 页面来自:个性网 单行注释: #注释内容 //注释内容 多行注释: /*注释内容*/ Example: <!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <title>Hello Php</title> </head> <body> <?php $Time = time();//时间戳 $Date = date("20y-m-d h:i:s",$Time); #[格式化输出]y:年 m:月 d:日 h:时 i:分 s:秒 echo $Date; $bl = date("s",$Time);//获取到的秒数 ?> <p> <!--href 根据刷新页面更改的秒数来动态更新指向页面 页面来自:个性网--> <a href="http://www.gexing.com/qqtouxiang/46928<?php echo $bl;?>.html" style="color:#1A1A1A;text-decoration:none;">点击我访问</a> </p> <image src="EngineerZhong.jpg"/> </body> </html>

    更新时间:2016年8月16日
    转载请注明原文地址: https://ju.6miu.com/read-1312700.html
    最新回复(0)