PHP getdate() Function

PHP getdate Function


Definition : 

In php getdate() Function is inbuilt function.PHP getdate() function is used to get date and time information of the given current local date and time. It accepts one parameter that is the given timestamp. It returns an array with information of the given input timestamp.

Syntax

    getdate(timestamp)

Parameter:
Parameter Description
timestamp Optional. Specifies an integer Unix timestamp. Default is the current local time (time())

Given below example Return date/time information of the current local date/time:

Output :