主页
PHP
PHP gettimeofday() 函数
tryphp_func_gettimeofday
运行 ❯
×
更改方向
保存代码
更改主题
<?php // Print the array from gettimeofday() print_r(gettimeofday()); echo "
"; // Print the float from gettimeofday() echo gettimeofday(true) . "
"; // Return current time; then format the output $mytime=gettimeofday(); echo "$mytime[sec].$mytime[usec]"; ?>