x
 
<!DOCTYPE html>
<html>
<body>
<?php
$jd=gregoriantojd(10,15,1980);
echo jddayofweek($jd,1);
?>
</body>
</html>