PHP idate() Function

6 Jan 2025 | 1 min read

This idate() function is used to examine all the different formats of local date and time.

Syntax

Parameters

ParameterDescriptionRequired/Optional
FormatSpecifies how to return the resultrequired
timestampSpecifies a Unix timestamp that represents the date and/or time to be formatted.optional

Return

This function always returns an integer.

Example 1

Output:

 322 9 6 6 

Example 2

Output:

 45 0 8 36