note 125583 deleted from language.types.boolean by cmb
| From: | cmb@php.net | Date: | Wed, 09 Dec 2020 13:54:45 +0000 |
| Subject: | note 125583 deleted from language.types.boolean by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215963@lists.php.net to get a copy of this message | ||
Note Submitter: alimoghani2001 at yahoo dot com
----
as a key of an element of an array ,below identical relations are true :
''===null --->TRUE
false===0 --->TRUE
true===1 --->TRUE
example:
$a=[false=>25];
$b=[0=>25];
if ($a===$b){
echo 'true';}
else{echo 'false';}//it returns true
$c=[null=>25];
$d=[''=>25];
if ($c===$d){
echo 'true';}
else{echo 'false';}//it returns true
$e=[true=>25];
$f=[1=>25];
if ($e===$f){
echo 'true';}
else{echo 'false';}//it returns true