Ejemplo n.º 1
0
 /**
  * 获取时间戳
  * 1. 静态时间戳函数
  * 全局使用方法:InitPHP::getTime();
  * @param $msg
  * @return html
  */
 public static function getTime()
 {
     if (self::$time > 0) {
         return self::$time;
     }
     self::$time = time();
     return self::$time;
 }