note 124639 added to language.operators.comparison
| From: | SumonMahmud@php.net | Date: | Thu, 23 Jan 2020 06:59:59 +0000 |
| Subject: | note 124639 added to language.operators.comparison | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-213944@lists.php.net to get a copy of this message | ||
Extending from here: https://www.php.net/manual/en/language.operators.comparison.php#121907
$a = ['a' => 1, 'b' => 2, 'c' => 3, 'e' => 4];
$b = ['a' => 1, 'b' => 2, 'd' => 3, 'e' => 4];
echo $a > $b; // 0
echo $b > $a; // 0
echo $a <$b; // 0
echo $b < $a; // 0
If using spaceship operator then it is returning true like :
echo $a <=> $b; //1
echo $b <=> $a; //1
echo $a <=> $b; //1
echo $b <=> $a; //1
----
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.operators.comparison.php
Edit -- https://master.php.net/note/edit/124639
Del: integrated -- https://master.php.net/note/delete/124639/integrated
Del: useless -- https://master.php.net/note/delete/124639/useless
Del: bad code -- https://master.php.net/note/delete/124639/bad+code
Del: spam -- https://master.php.net/note/delete/124639/spam
Del: non-english -- https://master.php.net/note/delete/124639/non-english
Del: in docs -- https://master.php.net/note/delete/124639/in+docs
Del: other reasons-- https://master.php.net/note/delete/124639
Reject -- https://master.php.net/note/reject/124639
Search -- https://master.php.net/manage/user-notes.php