note 125587 deleted from language.types.boolean by cmb

From: Date: Wed, 09 Dec 2020 13:54:48 +0000
Subject: note 125587 deleted from language.types.boolean by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-215964@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

« previous php.notes (#215964) next »