PHP 8.1.0 Beta 1 available for testing

Predefined Constants

The DATE_ constants are defined and they offer standard date representations, which can be used along with the date format functions (like date()).

Following constants specify a format returned by functions date_sunrise() and date_sunset().

SUNFUNCS_RET_TIMESTAMP (int)
Timestamp
SUNFUNCS_RET_STRING (int)
Hours:minutes (example: 08:02)
SUNFUNCS_RET_DOUBLE (int)
Hours as floating point number (example 8.75)
add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top