TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
746 B
47 lines
746 B
--TEST--
|
|
Test array_multisort() function : usage variation - testing with multiple array arguments
|
|
--SKIPIF--
|
|
|
|
--FILE--
|
|
<?php
|
|
echo "*** Testing array_multisort() : Testing all array sort specifiers ***\n";
|
|
|
|
$ar = array( 2, "aa" , "1");
|
|
|
|
array_multisort($ar, SORT_REGULAR, SORT_ASC);
|
|
var_dump($ar);
|
|
|
|
array_multisort($ar, SORT_STRING, SORT_ASC);
|
|
var_dump($ar);
|
|
|
|
array_multisort($ar, SORT_NUMERIC, SORT_ASC);
|
|
var_dump($ar);
|
|
|
|
|
|
?>
|
|
--EXPECT--
|
|
*** Testing array_multisort() : Testing all array sort specifiers ***
|
|
array(3) {
|
|
[0]=>
|
|
string(1) "1"
|
|
[1]=>
|
|
int(2)
|
|
[2]=>
|
|
string(2) "aa"
|
|
}
|
|
array(3) {
|
|
[0]=>
|
|
string(1) "1"
|
|
[1]=>
|
|
int(2)
|
|
[2]=>
|
|
string(2) "aa"
|
|
}
|
|
array(3) {
|
|
[0]=>
|
|
string(2) "aa"
|
|
[1]=>
|
|
string(1) "1"
|
|
[2]=>
|
|
int(2)
|
|
}
|
|
|