TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   is this the same? (http://www.talkphp.com/general/5621-same.html)

jwilson122 11-04-2010 02:17 AM

is this the same?
 
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..

tony 11-04-2010 04:02 AM

I think you mean the <= operator, which means "less than or equal to". Here is a table http://php.net/manual/en/language.op...comparison.php


All times are GMT. The time now is 08:24 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0