×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
1
Language: PHP
Posted by: Jing Tai Piao
Added: Oct 12, 2012 5:48 AM
Views: 25
Tags: no tags
Get current time stamp with milli second in PHP
  1. <?php
  2. $iMicrotime = microtime(true);
  3. $iTime      = explode ('.', $iMicrotime);
  4. $iMill      = $iTime[1];
  5. $dDate      = date ('Y-m-d H:i:s', $iTime[0]);
  6.  
  7. print $dDate.'.'.$iMill;
  8. ?>