note 127152 added to language.types.boolean
| From: | SalohiddinAbruyev at main dot php dot net | Date: | Thu, 02 Jun 2022 09:24:24 +0000 |
| Subject: | note 127152 added to language.types.boolean | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-218551@lists.php.net to get a copy of this message | ||
<?php
$x = 19;
$y = 21;
// the value of this variable is true
$z = ($x > $y) || ($x < $y);
var_dump($z);
echo '<br />';
// the value of this variable is false
$z = ($x > $y) || !($x < $y);
var_dump($z);
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.12.131 (proxied: 198.16.70.53)
----
Manual Page -- https://php.net/manual/en/language.types.boolean.php
Edit -- https://main.php.net/note/edit/127152
Del: integrated -- https://main.php.net/note/delete/127152/integrated
Del: useless -- https://main.php.net/note/delete/127152/useless
Del: bad code -- https://main.php.net/note/delete/127152/bad+code
Del: spam -- https://main.php.net/note/delete/127152/spam
Del: non-english -- https://main.php.net/note/delete/127152/non-english
Del: in docs -- https://main.php.net/note/delete/127152/in+docs
Del: other reasons-- https://main.php.net/note/delete/127152
Reject -- https://main.php.net/note/reject/127152
Search -- https://main.php.net/manage/user-notes.php