How php returns relative time
Editor to share with you how php returns the relative time, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
The details are as follows:
Function plural ($num) {if ($num! = 1) return "s";} function getRelativeTime ($date) {$diff = time ()-strtotime ($date); if ($diff)