note 129996 added to language.operators.logical
| From: | mail.sumangroup@gmail.com | Date: | Fri, 24 Jan 2025 13:58:02 +0000 |
| Subject: | note 129996 added to language.operators.logical | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-221812@lists.php.net to get a copy of this message | ||
$a=10;
$b=20;
$c=10;
$d="10";
$e=30;
echo '$a: ',"$a ",'$b: ',"$b ",'$c: ',"$c
",'$d: ',"$d ",'$e: ',"$e ","<br>";
echo 'and <br>';
$res=$a!=$b and $a>$c;
echo '$a<$b and $a==$e: ',"$res","<br>";
the expected output is 0(false) but it is showing 1(true).
console output:
$a: 10 $b: 20 $c: 10 $d: 10 $e: 30
<br>
and
<br>$a<$b and $a==$e: 1
<br>
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 103.205.128.205)
----
Manual Page -- https://php.net/manual/en/language.operators.logical.php
Edit -- https://main.php.net/note/edit/129996
Del: integrated -- https://main.php.net/note/delete/129996/integrated
Del: useless -- https://main.php.net/note/delete/129996/useless
Del: bad code -- https://main.php.net/note/delete/129996/bad+code
Del: spam -- https://main.php.net/note/delete/129996/spam
Del: non-english -- https://main.php.net/note/delete/129996/non-english
Del: in docs -- https://main.php.net/note/delete/129996/in+docs
Del: other reasons-- https://main.php.net/note/delete/129996
Reject -- https://main.php.net/note/reject/129996
Search -- https://main.php.net/manage/user-notes.php