note 99519 deleted from language.operators.comparison by danbrown
| From: | danbrown@php.net | Date: | Tue, 24 Aug 2010 13:02:56 +0000 |
| Subject: | note 99519 deleted from language.operators.comparison by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-171976@lists.php.net to get a copy of this message | ||
Note Submitter: msufflaj32 at gmail dot com
----
But if you change
== to === you get
[1234] vs [1234]
string '1234' (length=4)
string '1234' (length=4)
EQUAL !
[1234] vs [ 1234]
string '1234' (length=4)
string ' 1234' (length=5)
DIFFERENT !
[1234] vs [\n1234]
string '1234' (length=4)
string '\n1234' (length=6)
DIFFERENT !
[1234] vs [1234 ]
string '1234' (length=4)
string '1234 ' (length=5)
DIFFERENT !
[1234] vs [1234\n]
string '1234' (length=4)
string '1234\n' (length=6)
DIFFERENT !