Programmably, there are several different types of date and time in PHP you can create and process. Consequently, you have several types of current date and time in PHP that can be generated and used.
Below is a list of functions that returns the current date and time:
- The current Unix timestamp: time()
- The current date and time information returned as an array: getdate()
- The formatted locale string of current date and time: strftime()
- The formatted string of current date and time: time()
- The current local date and time values returned as an array: localtime()