PHP returns the implementation code of 13-digit timestamp, php13-digit_PHP tutorial

WBOY
Release: 2016-07-12 08:51:54
Original
1058 people have browsed it

PHP returns the implementation code of 13-digit timestamp, php13-bit

The 13-digit timestamp generation function is as follows:

private function getMillisecond() { 
  list($t1, $t2) = explode(' ', microtime()); 
  return (float)sprintf('%.0f',(floatval($t1)+floatval($t2))*1000); 
} 
Copy after login

The above implementation code of PHP returning 13-digit timestamp is all the content shared by the editor. I hope it can give you a reference, and I also hope that everyone will support Bangkejia.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1127923.htmlTechArticlePHP returns the implementation code of 13-digit timestamp. The php13-digit timestamp generation function is as follows: private function getMillisecond() { list($t1, $t2) = explode(' ', microtime()); return...
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template