Hi All, when running this in php, it returns true.
Which doesn't make sense as 800 is smaller than
Not sure why this is the case. However getting rid of the 0 in front fixes it. But I need to keep it as I am comparing time. EG: 0124 is greater than 0800 (8am) etc.
Can someone tells me why PHP behaves this way when you prefix your number with 0?
Many thanks.
Which doesn't make sense as 800 is smaller than
Code:
if(0124 >= 0800)
{
echo "this doesnt makes sense";
}
Can someone tells me why PHP behaves this way when you prefix your number with 0?
Many thanks.
Comment