+ 1
What is the time $_server['request_time'] returns.
Please anyone help me with this I didn't understand from when do this variable returns the time seconds
2 Answers
+ 3
Quoted from https://www.php.net/manual/en/reserved.variables.server.php
'REQUEST_TIME'
The timestamp of the start of the request.
This returns a timestamp indicating the time when the request arrives at the server. You need to use date() function to convert a timestamp into a human readable date/time value.
<?php
// đ
$timestamp = $_SERVER[ 'REQUEST_TIME' ];
echo date( 'Y/m/d H:i:s', $timestamp );
?>
+ 1
Thanks Ipang for helping me out