note 120947 added to language.types.boolean

From: Date: Thu, 06 Apr 2017 08:55:51 +0000
Subject: note 120947 added to language.types.boolean
Groups: php.notes 
Request: Send a blank email to php-notes+get-208989@lists.php.net to get a copy of this message
Fred Koschara's note http://php.net/manual/en/language.types.boolean.php#112190 Is not right, or maybe was for an old version of PHP. Tested on PHP 5.6, 7.0 and 7.1, in all cases, in both <?php $x=TRUE; $y=FALSE; $z=$y OR $x; ?> and <?php $x=TRUE; $y=FALSE; $z=$y || $x; ?> cases, $z contains the value of TRUE. ---- Server IP: 72.52.91.14 Probable Submitter: 62.232.188.146 ---- Manual Page -- http://php.net/manual/en/language.types.boolean.php Edit -- https://master.php.net/note/edit/120947 Del: integrated -- https://master.php.net/note/delete/120947/integrated Del: useless -- https://master.php.net/note/delete/120947/useless Del: bad code -- https://master.php.net/note/delete/120947/bad+code Del: spam -- https://master.php.net/note/delete/120947/spam Del: non-english -- https://master.php.net/note/delete/120947/non-english Del: in docs -- https://master.php.net/note/delete/120947/in+docs Del: other reasons-- https://master.php.net/note/delete/120947 Reject -- https://master.php.net/note/reject/120947 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#208989) next »