PHP JDDayOfWeek() Function
Complete PHP Calendar Reference
Definition and Usage
The JDDayOfWeek() function returns the day of a week.
Syntax
| Parameter |
Description |
| jd |
Required. A number (a Julian day count) |
| mode |
Optional. Defines what to return (integer or string). Mode
values:
- 0 - Default. Returns the day number as an int (0=Sunday, 1=Monday,
etc)
- 1 - Returns a string that contains the day of week
(English-Gregorian)
- 2 - Returns a string that contains the abbreviated day of week
(English-Gregorian)
|
Example
<?php
$jd=cal_to_jd(CAL_GREGORIAN,date("m"),date("d"),date("Y"));
echo(jddayofweek($jd,1));
?>
|
The output of the code above could be:
Complete PHP Calendar Reference

Whether you're new to XML or already an advanced user,
the user-friendly views and powerful entry helpers,
wizards, and debuggers in XMLSpy are designed to meet your XML
and Web development needs from start to finish.
New features in Version 2010!
- XML editor
- Graphical XML Schema / DTD editors
- XSLT 1.0/2.0 editor, debugger, profiler
- XQuery editor, debugger, profiler
- XBRL validator, taxonomy editor, taxonomy wizard
- Support for Office Open XML (OOXML)
- Graphical WSDL 1.1/2.0 editor & SOAP debugger
- JSON editing & conversion
- Java, C#, C++ code generation
- And much more!
Download a free trial today!
|
|
|
|