note 126538 added to language.operators.comparison

From: Date: Tue, 26 Oct 2021 05:13:23 +0000
Subject: note 126538 added to language.operators.comparison
Groups: php.notes 
Request: Send a blank email to php-notes+get-217117@lists.php.net to get a copy of this message
Unfortuleny, the Spaceship operator still useless, so you keep using strcmp(string, string) and number - number instead. https://3v4l.org/6R1Rc var_dump( "a" <=> "b", // int(-1) "a11" <=> "a2", // int(-1) "11" <=> "2", // int(1) <--- 11 <=> 2 // int(1) ); ---- Server IP: 45.112.84.4 Probable Submitter: 45.112.85.242 (proxied: 195.46.123.77) ---- Manual Page -- https://php.net/manual/en/language.operators.comparison.php Edit -- https://main.php.net/note/edit/126538 Del: integrated -- https://main.php.net/note/delete/126538/integrated Del: useless -- https://main.php.net/note/delete/126538/useless Del: bad code -- https://main.php.net/note/delete/126538/bad+code Del: spam -- https://main.php.net/note/delete/126538/spam Del: non-english -- https://main.php.net/note/delete/126538/non-english Del: in docs -- https://main.php.net/note/delete/126538/in+docs Del: other reasons-- https://main.php.net/note/delete/126538 Reject -- https://main.php.net/note/reject/126538 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#217117) next »