Q:

How is this date comparison not equal?

$days = $days_of_week[2];

if (date('d/m/Y') == $days) {
    $today = "Correct";
} else if (date('d/m/Y') != $days) {
    $today = '<br>Non correct<br>';
    $today1 = date('d/m/Y');
    $today2 = $days_of_week[2];
}

This returns when I echo the $today, $today1 and $today2.

Non correct 06/11/2013 06/11/2013

Am I missing something here? Tried ===

A:

Try change first string to 
$days = trim($days_of_week[2]);

May be in your input is any "invisible" symbols. For example any white spaces

