jwilson122
11-04-2010, 03:14 AM
Hey guys, okay so.. I was wondering does:
==
and
=> OR >
all mean the same thing?? I'm making a login script where it checks their status. I would like to code it like:
if ($results->status=>1)
{
echo 'Your account is not email verified!';
}
else if ($results->status=>2)
{
echo 'Your account is banned!';
}
Any other way should be doing it? I hate coding with like.. if ($results == 1) etc etc..
==
and
=> OR >
all mean the same thing?? I'm making a login script where it checks their status. I would like to code it like:
if ($results->status=>1)
{
echo 'Your account is not email verified!';
}
else if ($results->status=>2)
{
echo 'Your account is banned!';
}
Any other way should be doing it? I hate coding with like.. if ($results == 1) etc etc..