Posted By

njhamann on 07/20/09


Tagged

php varible


Versions (?)

Return Variable Php


 / Published in: PHP
 

  1. function microtime_float()
  2. {
  3. if (version_compare(phpversion(), '5.0.0', '>='))
  4. {
  5. return microtime(true);
  6. }
  7. else
  8. {
  9. list($usec, $sec) = explode(' ', microtime());
  10. return ((float) $usec + (float) $sec);
  11. }
  12. }
  13.  
  14. $start = microtime_float();

Report this snippet  

You need to login to post a comment.