im trying to learn php and i came across this sample code
Code:
<html>
<body>

<?php
$d=date("D");
if ($d=="Fri")
echo "Have a nice weekend!"; 
else
echo "Have a nice day!"; 
?>

</body>
</html>
what is the line "$d=date("D");" doing and why is it not setting a value of fri or something