Display the drop-down list

Test of array_reduce()

Example #1 : test success
Example #2 : test success
Example #3 : test success
Example #1
$input = [
  
=> [
    
=> 1,
    
=> 2,
    
=> 3,
    
=> 4,
    
=> 5,
  ],
  
=> 'rsum',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => 15,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = [
  
=> [
    
=> 1,
    
=> 2,
    
=> 3,
    
=> 4,
    
=> 5,
  ],
  
=> 'rmul',
  
=> 10,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => 1200,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #3
$input = [
  
=> [
  ],
  
=> 'rsum',
  
=> 'No data to reduce',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => 'No data to reduce',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]