Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-04-2010, 03:14 AM   PM User | #1
jwilson122
New Coder

 
Join Date: Nov 2010
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
jwilson122 is an unknown quantity at this point
does this??

Hey guys, okay so.. I was wondering does:
PHP Code:
== 
and

PHP Code:
=> 
OR
PHP Code:

all mean the same thing?? I'm making a login script where it checks their status. I would like to code it like:
PHP Code:
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..
jwilson122 is offline   Reply With Quote
Old 11-04-2010, 03:22 AM   PM User | #2
The reaper
Regular Coder

 
Join Date: Oct 2009
Location: Florida
Posts: 153
Thanks: 16
Thanked 2 Times in 2 Posts
The reaper is an unknown quantity at this point
Well
PHP Code:
== 
Is equal to
PHP Code:
=> 
Is greater than or equal to
PHP Code:

Is just greater than
The reaper is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:22 PM.


Advertisement
Log in to turn off these ads.