note 125583 added to language.types.boolean

From: Date: Wed, 09 Dec 2020 09:23:35 +0000
Subject: note 125583 added to language.types.boolean
Groups: php.notes 
Request: Send a blank email to php-notes+get-215956@lists.php.net to get a copy of this message
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 ---- Server IP: 45.112.84.4 Probable Submitter: 45.112.85.244 (proxied: 65.49.38.146) ---- Manual Page -- http://php.net/manual/en/language.types.boolean.php Edit -- https://master.php.net/note/edit/125583 Del: integrated -- https://master.php.net/note/delete/125583/integrated Del: useless -- https://master.php.net/note/delete/125583/useless Del: bad code -- https://master.php.net/note/delete/125583/bad+code Del: spam -- https://master.php.net/note/delete/125583/spam Del: non-english -- https://master.php.net/note/delete/125583/non-english Del: in docs -- https://master.php.net/note/delete/125583/in+docs Del: other reasons-- https://master.php.net/note/delete/125583 Reject -- https://master.php.net/note/reject/125583 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#215956) next »