note 45214 deleted from function.sort by cmb
| From: | cmb@php.net | Date: | Sun, 27 Oct 2019 08:37:13 +0000 |
| Subject: | note 45214 deleted from function.sort by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-212793@lists.php.net to get a copy of this message | ||
Note Submitter: teunkloosterman at hotmail dot com
----
Just to show how it sorts:
<?php
$array = Array("1", "2", "3", "4", "5",
"6", "7", "8", "9", "0", "a",
"b", "c", "d", "e", "f", "g",
"h", "i", "j", "k", "l", "m",
"n", "o", "p", "q", "r", "s",
"t", "u", "v", "w", "x", "y",
"z", "A", "B", "C", "D", "E",
"F", "G", "H", "I", "J", "K",
"L", "M", "N", "O", "P", "Q",
"R", "S", "T", "U", "V", "W",
"X", "Y", "Z", " ", "!", "@",
"#", "\\\$", "%", "^", "&", "*",
"(", ")", "_", "-", "=", "+",
"\\\\", "|", ",", "<", ".", ">",
"?", "'", "\\\"", "`", "~");
sort($array);
echo implode("", $array);
?>
returns:
!"#$%&'()*+,-.0123456789<=>?
@ABCDEFGHIJKLMNOPQRSTUVWXYZ
\^_`abcdefghijklmnopqrstuvwxyz|~
note: the result begins with a space