Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: does this??

  1. #1
    New Coder
    Join Date
    Nov 2010
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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..

  • #2
    Regular Coder
    Join Date
    Oct 2009
    Location
    Florida
    Posts
    155
    Thanks
    16
    Thanked 2 Times in 2 Posts
    Well
    PHP Code:
    == 
    Is equal to
    PHP Code:
    => 
    Is greater than or equal to
    PHP Code:

    Is just greater than


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •