PHP

How to print the timestamp of the start of the request in PHP | PHP program

How to print the timestamp of the start of the request in PHP | PHP program

How to print the timestamp of the start of the request in PHP | PHP program

We will use $_SERVER[' REQUEST_TIME '] superglobal, which is used to return the timestamp of the start of the request.

<?php



$requestTime = $_SERVER['REQUEST_TIME'];

printf("Timestamp: %s<br>", $requestTime);
?>
TutorialsLink Curator

This is an official account managed by the team TutorialsLink Community