显示下拉菜单

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

Example #1 : test success
Example #2 : test success
Example #3 : test success
Example #4 : test success
Example #5 : test success
Example #6 : test success
Example #1
$input = [
  
=> [
    
=> 1,
    
=> 3,
    
=> 5,
  ],
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => 3,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = [
  
=> [
    
=> 7,
    
=> 9,
    
10 => 11,
  ],
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => 3,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #3
$input = [
  
=> NULL,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => 0,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #4
$input = [
  
=> false,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => 1,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #5
$input = [
  
=> [
    
'fruits' => [
      
=> 'orange',
      
=> 'banana',
      
=> 'apple',
    ],
    
'veggie' => [
      
=> 'carrot',
      
=> 'collard',
      
=> 'pea',
    ],
  ],
  
=> 'COUNT_RECURSIVE',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => 8,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #6
$input = [
  
=> [
    
'fruits' => [
      
=> 'orange',
      
=> 'banana',
      
=> 'apple',
    ],
    
'veggie' => [
      
=> 'carrot',
      
=> 'collard',
      
=> 'pea',
    ],
  ],
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => 2,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]