$examDay1 = date("07.02.2022");
$examDay2 = date("18.03.2022");
$examDay3 = date("06.04.2022");
$today = date("d.m.Y");
print_r($examDay1 <= $today); //true
print_r($examDay2 <= $today); // false as I expected
print_r($examDay3 <= $today); // true for some reason
I am trying to give access to users in same specific dates. For example one of them started today and the comparison worked fine. However, somehow it says $examDay3 <=$today
gives true
. What am I doing wrong?