note 126373 added to language.operators.comparison

From: Date: Mon, 30 Aug 2021 18:54:16 +0000
Subject: note 126373 added to language.operators.comparison
Groups: php.notes 
Request: Send a blank email to php-notes+get-216839@lists.php.net to get a copy of this message
When using spaceship(<=>) operator bellow those rules will apply. Rules: 1. Return 0 if values on either side are equal. 2. Return 1 if the value on the left is greater. 3. Return -1 if the value on the right is greater. Examples: echo 1 <=> 1; //output 0 echo 3 <=> 4; //output -1 echo 4 <=> 3; //output 1 ---- Server IP: 45.112.84.4 Probable Submitter: 45.112.85.242 (proxied: 144.48.110.34) ---- Manual Page -- https://php.net/manual/en/language.operators.comparison.php Edit -- https://main.php.net/note/edit/126373 Del: integrated -- https://main.php.net/note/delete/126373/integrated Del: useless -- https://main.php.net/note/delete/126373/useless Del: bad code -- https://main.php.net/note/delete/126373/bad+code Del: spam -- https://main.php.net/note/delete/126373/spam Del: non-english -- https://main.php.net/note/delete/126373/non-english Del: in docs -- https://main.php.net/note/delete/126373/in+docs Del: other reasons-- https://main.php.net/note/delete/126373 Reject -- https://main.php.net/note/reject/126373 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#216839) next »