note 79684 added to function.strcmp
| From: | rks at rks dot org | Date: | Fri, 07 Dec 2007 20:53:07 +0000 |
| Subject: | note 79684 added to function.strcmp | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-132942@lists.php.net to get a copy of this message | ||
I liked the idea of strcmp returning the difference in the first non-matching characters, as someone
mentioned. Gives the correct answer and added info if you can use it.
Tried it and got:
In my php version 5.2.5, strcmp("red", "blue") returns 1
----
Server IP: 209.41.74.194
Probable Submitter: 72.1.188.11
----
Manual Page -- http://www.php.net/manual/en/function.strcmp.php
Edit -- https://master.php.net/note/edit/79684
Del: integrated -- https://master.php.net/note/delete/79684/integrated
Del: useless -- https://master.php.net/note/delete/79684/useless
Del: bad code -- https://master.php.net/note/delete/79684/bad+code
Del: spam -- https://master.php.net/note/delete/79684/spam
Del: non-english -- https://master.php.net/note/delete/79684/non-english
Del: in docs -- https://master.php.net/note/delete/79684/in+docs
Del: other reasons-- https://master.php.net/note/delete/79684
Reject -- https://master.php.net/note/reject/79684
Search -- https://master.php.net/manage/user-notes.php