PHP jddayofweek() Function

The jddayofweek() function returns the day of the week.Returns the day of the week. Can return a string or an integer depending on the mode.

Example -

ModeMeaning
0(Default)Return the day number as an int (0=Sunday, 1=Monday, etc)
1Returns string containing the day of week (English-Gregorian)
2Return a string containing the abbreviated day of week (English-Gregorian)