note 124631 added to language.types.boolean

From: Date: Tue, 21 Jan 2020 09:23:09 +0000
Subject: note 124631 added to language.types.boolean
Groups: php.notes 
Request: Send a blank email to php-notes+get-213931@lists.php.net to get a copy of this message
When compare zero (0) with string it's return true by type jugling. When compare with TRUE with also the same string it's also returning true. But when comparing zero (0) with True then it's returning FALSE. echo 0 == 'This is a string'; // 1 echo TRUE == 'This is a string'; //1 echo 0 == TRUE ; // FALSE ---- Server IP: 45.112.84.4 Probable Submitter: 185.85.3.195 (proxied: 103.4.146.92) ---- Manual Page -- http://php.net/manual/en/language.types.boolean.php Edit -- https://master.php.net/note/edit/124631 Del: integrated -- https://master.php.net/note/delete/124631/integrated Del: useless -- https://master.php.net/note/delete/124631/useless Del: bad code -- https://master.php.net/note/delete/124631/bad+code Del: spam -- https://master.php.net/note/delete/124631/spam Del: non-english -- https://master.php.net/note/delete/124631/non-english Del: in docs -- https://master.php.net/note/delete/124631/in+docs Del: other reasons-- https://master.php.net/note/delete/124631 Reject -- https://master.php.net/note/reject/124631 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#213931) next »