显示下拉菜单

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

Example #1 : test success
Example #2 : test success
Example #1
$input = [
  
=> [
    
=> 'php',
    
=> 4.0,
    
=> [
      
=> 'green',
      
=> 'red',
    ],
  ],
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'array' => [
      
=> [
        
=> 'green',
        
=> 'red',
      ],
      
=> 4,
      
=> 'php',
    ],
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = [
  
=> [
    
=> 'php',
    
=> 4.0,
    
=> [
      
=> 'green',
      
=> 'red',
    ],
  ],
  
=> true,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'array' => [
      
=> [
        
=> 'green',
        
=> 'red',
      ],
      
=> 4,
      
=> 'php',
    ],
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]