INVP::weekdays( int $zero_through_six = null )

weekdays


Description Description

If no parameter is provided, returns an array containing lowercase weekdays as keys and title case, three-letter abbreviations as values.<br>If a valid parameter is provided, returns the lowercase day name it identifies. If an invalid parameter is provided, returns false.


Top ↑

Parameters Parameters

$zero_through_six

(Optional) A number between 0 and 6 to identify a single day to return as a string.

Default value: null


Top ↑

Return Return

(string|Array|false)


Top ↑

Source Source

File: includes/class-invp.php