9e127b9831
Most of this is ported over, except some omissions:
- array_filter, array_key_exists (suspected we had coverage already;
one is a bytecode, and one was rewritten in hhas recently)
- some random cases distinguishing init_null_variant vs. null_variant
24 linhas
382 B
PHP
24 linhas
382 B
PHP
<?php
|
|
|
|
function reverse_strcasecmp($s1,$s2) {
|
|
return strcasecmp($s2,$s1);
|
|
}
|
|
|
|
$fruits = array(
|
|
"d" => "lemon",
|
|
"a" => "orange",
|
|
"b" => "banana",
|
|
"c" => "apple"
|
|
);
|
|
uasort($fruits, 'reverse_strcasecmp');
|
|
var_dump($fruits);
|
|
|
|
$fruits = array(
|
|
"d" => "lemon",
|
|
"a" => "orange",
|
|
"b" => "banana",
|
|
"c" => "apple"
|
|
);
|
|
uksort($fruits, 'reverse_strcasecmp');
|
|
var_dump($fruits);
|