Display the drop-down list

Test of collator_asort()

Example #1 : test success
Example #2 : test success
Example #1
$input = [
  
'locale' => 'en_US',
  
'__arr' => [
    
'a' => '100',
    
'b' => '50',
    
'c' => '7',
  ],
  
=> '$arr',
  
=> 'Collator::SORT_NUMERIC',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'collator' => 'Collator instance',
    
'arr' => [
      
'c' => '7',
      
'b' => '50',
      
'a' => '100',
    ],
    
'bool' => true,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = [
  
'locale' => 'en_US',
  
'__arr' => [
    
'a' => '100',
    
'b' => '50',
    
'c' => '7',
  ],
  
=> '$arr',
  
=> 'Collator::SORT_STRING',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'collator' => 'Collator instance',
    
'arr' => [
      
'a' => '100',
      
'b' => '50',
      
'c' => '7',
    ],
    
'bool' => true,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]