Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

get_weekstartend()

3 tags 1 category

get_weekstartend() — Gets the week start and end from the datetime or date string from MySQL.

Inputs: $mysqlstring (string): Date or datetime field type from MySQL. $start_of_week (int|string): Optional. Start of the week as an integer. Default empty string.

Returns int[]: Week start and end dates as Unix timestamps. Field $start (int): The week start date as a Unix timestamp. Field $end (int): The week end date as a Unix timestamp.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…