Definition
The gettimeofday() function returns the current time.
Syntax
gettimeofday(return_float)
Parameters
Parameter | Description |
---|---|
return_float |
Optional. When set to true , a float instead of an array is returned. Default is false . |
Example
<?php
print_r(gettimeofday());
echo "<br>";
echo gettimeofday(true);