显示下拉菜单

Test of array_uintersect_uassoc() 本页面仅提供英文版本。

Example #1 : test success
Example #2 : test success
Example #1
$input = [
  
=> [
    
'a' => 'green',
    
'b' => 'brown',
    
'c' => 'blue',
    
=> 'red',
  ],
  
=> [
    
'a' => 'GREEN',
    
'B' => 'brown',
    
=> 'yellow',
    
=> 'red',
  ],
  
=> 'strcasecmp',
  
=> 'strcasecmp',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'array' => [
      
'a' => 'green',
      
'b' => 'brown',
    ],
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = [
  
=> [
    
'a' => 'green',
    
'b' => 'brown',
    
'c' => 'blue',
    
=> 'red',
  ],
  
=> [
    
'a' => 'GREEN',
    
'B' => 'brown',
    
=> 'yellow',
    
=> 'red',
  ],
  
=> 'compare_func',
  
=> 'compare_func',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'array' => [
    ],
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]