首页 WordPress函数大全 get_weekstartend()

get_weekstartend()

2020-05-02 / 5166阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

get_weekstartend( string $mysqlstring, int|string $start_of_week = '' )

Get the week start and end from the datetime or date string from MySQL.

描述

参数

$mysqlstring

(string)
(Required)
Date or datetime field type from MySQL.

$start_of_week

(int|string)
(Optional)
Start of the week as an integer.

Default value: ''

返回

(array) Keys are 'start' and 'end'.

大家谈论
    我的见解