http://php.flashwebhost.com/melbin/days.php

PHP Code:
<?php
$day
='Sunday';
if (
$day="Sunday") {
    echo 
'Have a nice Sunday';
}

else {
    echo 
'Have a nice day';
}
In this code when i use == on line no:3
if ($day=="Sunday") {
i am getting the result as FALSE. Why ?

Doubt 2

Is it possible to get the day by using PHP date and time function ?