PHP Classes

problem with '=='

Recommend this page to a friend!

      Top level forums  >  PHP Specialists  >  General  >  problem with '=='  
Subject:problem with '=='
Summary:Why this false condition is true?
Messages:3
Author:Abdolghani Vahidi
Date:2011-08-08 16:17:14
Update:2011-08-10 07:03:14
 

  1. problem with '=='   Reply   Report abuse  
Picture of Abdolghani Vahidi Abdolghani Vahidi - 2011-08-08 19:59:18
Why this condition is true? But when I check it by '===', it work fine. Is this PHP bug or my problem?

if('987654321123456789987654321123456789'=='987654321123456789876543210012345698'){
echo 'Why this condition is true?';
}


Thanks

There are 2 replies in this thread, which are not being displayed.
Browsing this forum thread replies is available only to premium subscribers.


Go to the premium subscriptions page to learn how to become a premium subscriber and have full access to this forum.