Created
November 1, 2014 10:46
-
-
Save technoknol/bb2dcff3a00aec5798c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Get current time in milliseconds | |
$timeparts = explode(" ",microtime()); | |
$currenttime = bcadd(($timeparts[0]*1000),bcmul($timeparts[1],1000)); | |
echo $currenttime; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment