PHP date_timestamp_get() Function

PHP date_timestamp_get Function


Definition : 

In php date_timestamp_get() Function is inbuilt function.PHP date_timestamp_get() function is used to gets the Unix timestamp. It returns the Unix timestamp representing the given input date. It accepts only a single parameter $object that is the DateTime object which is returned by the date_create() function.

Syntax

   date_timestamp_get(object)

Parameter
Parameter Description
object Required. Specifies a DateTime object returned by date_create()

Given below example the date_timestamp_get() function returns the Unix timestamp.

Output : 1641194550