In the file defines.php, I have define("YES",1);.
I am including this file in the login.php page as 
require_once('/defines.php');
where I have this check if ($row['registered'] === YES). This is not evaluating to true. If I use double equals, it works. I did 
echo $row['registered'];
echo YES;
and I am getting the output as
1
1
On my localhost machine, however, === is working fine. Why is this strange behaviour? Is there any dependency on production server? 
PS : My hosing server is using PHP v5.4
EDIT
Var dump : string(1) "1" int(1) But I have tinyint type in database, why I am getting string data type?
 
     
     
    