显示下拉菜单

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

Example #1 : test success
Example #2 : test success
Example #3 : test success
Example #4 : test success
Example #1
$input = [
  
=> 0,
  
=> 12,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'array' => [
      
=> 0,
      
=> 1,
      
=> 2,
      
=> 3,
      
=> 4,
      
=> 5,
      
=> 6,
      
=> 7,
      
=> 8,
      
=> 9,
      
10 => 10,
      
11 => 11,
      
12 => 12,
    ],
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = [
  
=> 0,
  
=> 100,
  
=> 10,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'array' => [
      
=> 0,
      
=> 10,
      
=> 20,
      
=> 30,
      
=> 40,
      
=> 50,
      
=> 60,
      
=> 70,
      
=> 80,
      
=> 90,
      
10 => 100,
    ],
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #3
$input = [
  
=> 'a',
  
=> 'i',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'array' => [
      
=> 'a',
      
=> 'b',
      
=> 'c',
      
=> 'd',
      
=> 'e',
      
=> 'f',
      
=> 'g',
      
=> 'h',
      
=> 'i',
    ],
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #4
$input = [
  
=> 'c',
  
=> 'a',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'array' => [
      
=> 'c',
      
=> 'b',
      
=> 'a',
    ],
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]