I am completely scratching my head over this one...
$yesterday = date('ymd',strtotime("-1 day"));
$DatetoConvert = $yesterday;
if ($DateToConvert == $yesterday) {
echo "If?";
}
else {
echo "Else?";
}
Why does it echo else instead of if? They should be equal and type shouldn't matter, correct?