note 104683 rejected from language.operators.comparison by danbrown
| From: | danbrown@php.net | Date: | Thu, 30 Jun 2011 14:34:53 +0000 |
| Subject: | note 104683 rejected from language.operators.comparison by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-181107@lists.php.net to get a copy of this message | ||
Note Submitter: qq541921209 at gmail dot com
----
In the PHP Manual it is said that:
"$a === $b Identical TRUE if $a is equal to $b, and they are of the same type. (introduced in
PHP 4)"
But when I test like that:
<?php
$A=4;
$B = '4' - '0';
echo '$A === $B ';
echo $A === $B?"true":"false";
//Out put $A === $B true
?>
I think $A and $B do not have same type, but there are in same values.
Is that a bugs?
I need help with this.