Return Variable Php


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.