How to use JdDayOfWeek in PHP Calendar
In this article I am going to explain about JdDayOfWeek function in PHP.
PHP Calendar JdDayOfWeek() Function
The calendar JdDayOfWeek function returns the day of the week.
Syntax of JdDayOfWeek function
Parameters in JdDayOfWeek function
It have three parameters and all parameters is required:
Parameter |
Description |
jd |
A Julian day number as integer |
mode |
Calendar week mode. |
Example of Calendar JdDayOfWeek function
<html>
<body>
<?php
$jdweek=cal_to_jd(CAL_GREGORIAN,date("m"),date("d"),date("Y"));
echo(jddayofweek($jdweek,1));
?>
</body>
</html>
|
Output:
You may also want to read these related articles :here
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here