+ 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

14th Sep 2021, 3:58 PM
Deepak Jain
Deepak Jain - avatar
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 ); ?>
14th Sep 2021, 4:56 PM
Ipang
+ 1
Thanks Ipang for helping me out
15th Sep 2021, 2:46 AM
Deepak Jain
Deepak Jain - avatar