📄 002.phpt
字号:
string(6) "banana" [1]=> string(6) "orange" } [3]=> string(3) "PHP" [4]=> string(27) "PHP: Hypertext Preprocessor" [5]=> string(4) "Test" [6]=> string(6) "monkey" [7]=> string(4) "test"}--UEXPECT--Unsorted data:array(8) { [0]=> unicode(3) "PHP" [17]=> unicode(27) "PHP: Hypertext Preprocessor" [5]=> unicode(4) "Test" [u"test"]=> int(27) [1000]=> unicode(4) "test" [-1000]=> array(2) { [0]=> unicode(6) "banana" [1]=> unicode(6) "orange" } [1001]=> unicode(6) "monkey" [16777216]=> float(-0.33333333333333)} -- Testing arsort() -- No second argument:array(8) { [-1000]=> array(2) { [0]=> unicode(6) "banana" [1]=> unicode(6) "orange" } [u"test"]=> int(27) [1000]=> unicode(4) "test" [1001]=> unicode(6) "monkey" [5]=> unicode(4) "Test" [17]=> unicode(27) "PHP: Hypertext Preprocessor" [0]=> unicode(3) "PHP" [16777216]=> float(-0.33333333333333)}Using SORT_REGULAR:array(8) { [-1000]=> array(2) { [0]=> unicode(6) "banana" [1]=> unicode(6) "orange" } [u"test"]=> int(27) [1000]=> unicode(4) "test" [1001]=> unicode(6) "monkey" [5]=> unicode(4) "Test" [17]=> unicode(27) "PHP: Hypertext Preprocessor" [0]=> unicode(3) "PHP" [16777216]=> float(-0.33333333333333)}Using SORT_NUMERIC:array(8) { [u"test"]=> int(27) [-1000]=> array(2) { [0]=> unicode(6) "banana" [1]=> unicode(6) "orange" } [0]=> unicode(3) "PHP" [17]=> unicode(27) "PHP: Hypertext Preprocessor" [1001]=> unicode(6) "monkey" [5]=> unicode(4) "Test" [1000]=> unicode(4) "test" [16777216]=> float(-0.33333333333333)}Using SORT_STRINGarray(8) { [1000]=> unicode(4) "test" [1001]=> unicode(6) "monkey" [5]=> unicode(4) "Test" [17]=> unicode(27) "PHP: Hypertext Preprocessor" [0]=> unicode(3) "PHP" [-1000]=> array(2) { [0]=> unicode(6) "banana" [1]=> unicode(6) "orange" } [u"test"]=> int(27) [16777216]=> float(-0.33333333333333)} -- Testing asort() -- No second argument:array(8) { [16777216]=> float(-0.33333333333333) [0]=> unicode(3) "PHP" [17]=> unicode(27) "PHP: Hypertext Preprocessor" [5]=> unicode(4) "Test" [1001]=> unicode(6) "monkey" [1000]=> unicode(4) "test" [u"test"]=> int(27) [-1000]=> array(2) { [0]=> unicode(6) "banana" [1]=> unicode(6) "orange" }}Using SORT_REGULAR:array(8) { [16777216]=> float(-0.33333333333333) [0]=> unicode(3) "PHP" [17]=> unicode(27) "PHP: Hypertext Preprocessor" [5]=> unicode(4) "Test" [1001]=> unicode(6) "monkey" [1000]=> unicode(4) "test" [u"test"]=> int(27) [-1000]=> array(2) { [0]=> unicode(6) "banana" [1]=> unicode(6) "orange" }}Using SORT_NUMERIC:array(8) { [16777216]=> float(-0.33333333333333) [1001]=> unicode(6) "monkey" [1000]=> unicode(4) "test" [5]=> unicode(4) "Test" [17]=> unicode(27) "PHP: Hypertext Preprocessor" [0]=> unicode(3) "PHP" [-1000]=> array(2) { [0]=> unicode(6) "banana" [1]=> unicode(6) "orange" } [u"test"]=> int(27)}Using SORT_STRINGarray(8) { [16777216]=> float(-0.33333333333333) [u"test"]=> int(27) [-1000]=> array(2) { [0]=> unicode(6) "banana" [1]=> unicode(6) "orange" } [0]=> unicode(3) "PHP" [17]=> unicode(27) "PHP: Hypertext Preprocessor" [5]=> unicode(4) "Test" [1001]=> unicode(6) "monkey" [1000]=> unicode(4) "test"} -- Testing krsort() -- No second argument:array(8) { [16777216]=> float(-0.33333333333333) [1001]=> unicode(6) "monkey" [1000]=> unicode(4) "test" [17]=> unicode(27) "PHP: Hypertext Preprocessor" [5]=> unicode(4) "Test" [u"test"]=> int(27) [0]=> unicode(3) "PHP" [-1000]=> array(2) { [0]=> unicode(6) "banana" [1]=> unicode(6) "orange" }}Using SORT_REGULAR:array(8) { [16777216]=> float(-0.33333333333333) [1001]=> unicode(6) "monkey" [1000]=> unicode(4) "test" [17]=> unicode(27) "PHP: Hypertext Preprocessor" [5]=> unicode(4) "Test" [0]=> unicode(3) "PHP" [u"test"]=> int(27) [-1000]=> array(2) { [0]=> unicode(6) "banana" [1]=> unicode(6) "orange" }}Using SORT_NUMERIC:array(8) { [16777216]=> float(-0.33333333333333) [1001]=> unicode(6) "monkey" [1000]=> unicode(4) "test" [17]=> unicode(27) "PHP: Hypertext Preprocessor" [5]=> unicode(4) "Test" [u"test"]=> int(27) [0]=> unicode(3) "PHP" [-1000]=> array(2) { [0]=> unicode(6) "banana" [1]=> unicode(6) "orange" }}Using SORT_STRINGarray(8) { [u"test"]=> int(27) [5]=> unicode(4) "Test" [17]=> unicode(27) "PHP: Hypertext Preprocessor" [16777216]=> float(-0.33333333333333) [1001]=> unicode(6) "monkey" [1000]=> unicode(4) "test" [0]=> unicode(3) "PHP" [-1000]=> array(2) { [0]=> unicode(6) "banana" [1]=> unicode(6) "orange" }} -- Testing ksort() -- No second argument:array(8) { [-1000]=> array(2) { [0]=> unicode(6) "banana" [1]=> unicode(6) "orange" } [0]=> unicode(3) "PHP" [u"test"]=> int(27) [5]=> unicode(4) "Test" [17]=> unicode(27) "PHP: Hypertext Preprocessor" [1000]=> unicode(4) "test" [1001]=> unicode(6) "monkey" [16777216]=> float(-0.33333333333333)}Using SORT_REGULAR:array(8) { [-1000]=> array(2) { [0]=> unicode(6) "banana" [1]=> unicode(6) "orange" } [u"test"]=> int(27) [0]=> unicode(3) "PHP" [5]=> unicode(4) "Test" [17]=> unicode(27) "PHP: Hypertext Preprocessor" [1000]=> unicode(4) "test" [1001]=> unicode(6) "monkey" [16777216]=> float(-0.33333333333333)}Using SORT_NUMERIC:array(8) { [-1000]=> array(2) { [0]=> unicode(6) "banana" [1]=> unicode(6) "orange" } [0]=> unicode(3) "PHP" [u"test"]=> int(27) [5]=> unicode(4) "Test" [17]=> unicode(27) "PHP: Hypertext Preprocessor" [1000]=> unicode(4) "test" [1001]=> unicode(6) "monkey" [16777216]=> float(-0.33333333333333)}Using SORT_STRINGarray(8) { [-1000]=> array(2) { [0]=> unicode(6) "banana" [1]=> unicode(6) "orange" } [0]=> unicode(3) "PHP" [1000]=> unicode(4) "test" [1001]=> unicode(6) "monkey" [16777216]=> float(-0.33333333333333) [17]=> unicode(27) "PHP: Hypertext Preprocessor" [5]=> unicode(4) "Test" [u"test"]=> int(27)} -- Testing rsort() -- No second argument:array(8) { [0]=> array(2) { [0]=> unicode(6) "banana" [1]=> unicode(6) "orange" } [1]=> int(27) [2]=> unicode(4) "test" [3]=> unicode(6) "monkey" [4]=> unicode(4) "Test" [5]=> unicode(27) "PHP: Hypertext Preprocessor" [6]=> unicode(3) "PHP" [7]=> float(-0.33333333333333)}Using SORT_REGULAR:array(8) { [0]=> array(2) { [0]=> unicode(6) "banana" [1]=> unicode(6) "orange" } [1]=> int(27) [2]=> unicode(4) "test" [3]=> unicode(6) "monkey" [4]=> unicode(4) "Test" [5]=> unicode(27) "PHP: Hypertext Preprocessor" [6]=> unicode(3) "PHP" [7]=> float(-0.33333333333333)}Using SORT_NUMERIC:array(8) { [0]=> int(27) [1]=> array(2) { [0]=> unicode(6) "banana" [1]=> unicode(6) "orange" } [2]=> unicode(3) "PHP" [3]=> unicode(27) "PHP: Hypertext Preprocessor" [4]=> unicode(6) "monkey" [5]=> unicode(4) "Test" [6]=> unicode(4) "test" [7]=> float(-0.33333333333333)}Using SORT_STRINGarray(8) { [0]=> unicode(4) "test" [1]=> unicode(6) "monkey" [2]=> unicode(4) "Test" [3]=> unicode(27) "PHP: Hypertext Preprocessor" [4]=> unicode(3) "PHP" [5]=> array(2) { [0]=> unicode(6) "banana" [1]=> unicode(6) "orange" } [6]=> int(27) [7]=> float(-0.33333333333333)} -- Testing sort() -- No second argument:array(8) { [0]=> float(-0.33333333333333) [1]=> unicode(3) "PHP" [2]=> unicode(27) "PHP: Hypertext Preprocessor" [3]=> unicode(4) "Test" [4]=> unicode(6) "monkey" [5]=> unicode(4) "test" [6]=> int(27) [7]=> array(2) { [0]=> unicode(6) "banana" [1]=> unicode(6) "orange" }}Using SORT_REGULAR:array(8) { [0]=> float(-0.33333333333333) [1]=> unicode(3) "PHP" [2]=> unicode(27) "PHP: Hypertext Preprocessor" [3]=> unicode(4) "Test" [4]=> unicode(6) "monkey" [5]=> unicode(4) "test" [6]=> int(27) [7]=> array(2) { [0]=> unicode(6) "banana" [1]=> unicode(6) "orange" }}Using SORT_NUMERIC:array(8) { [0]=> float(-0.33333333333333) [1]=> unicode(6) "monkey" [2]=> unicode(4) "test" [3]=> unicode(4) "Test" [4]=> unicode(27) "PHP: Hypertext Preprocessor" [5]=> unicode(3) "PHP" [6]=> array(2) { [0]=> unicode(6) "banana" [1]=> unicode(6) "orange" } [7]=> int(27)}Using SORT_STRINGarray(8) { [0]=> float(-0.33333333333333) [1]=> int(27) [2]=> array(2) { [0]=> unicode(6) "banana" [1]=> unicode(6) "orange" } [3]=> unicode(3) "PHP" [4]=> unicode(27) "PHP: Hypertext Preprocessor" [5]=> unicode(4) "Test" [6]=> unicode(6) "monkey" [7]=> unicode(4) "test"}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -