PHP weird question with comparing?

  • Thread starter Thread starter evachick156
  • Start date Start date
E

evachick156

Guest
How is this true???

$var = 0;
if($var == "-")
{
echo "GO HERE";
}
else
{
echo "DONT GO HERE";
}

I dont understand it...please help me because it should be "!= "-" should be true!!!
 
Back
Top