Home >Backend Development >PHP Problem >What does time in PHP mean?
In PHP, time means "time". It is a built-in function in PHP. It is used to return the number of seconds from the Unix epoch to the current time. The returned result is a Unix time containing the current time. The integer of the stamp. This function has no parameters and the syntax is "time()".
The operating environment of this article: Windows 10 system, PHP version 7.1, Dell G3 computer
time();Return value: Returns an integer containing the Unix timestamp of the current time. Examples are as follows:
<?php $t=time(); echo($t . "<br>"); echo(date("Y-m-d",$t)); ?>Output results:
## Recommended learning: "
PHP Video TutorialThe above is the detailed content of What does time in PHP mean?. For more information, please follow other related articles on the PHP Chinese website!