Display the drop-down list

Test of array_chunk()

Example #1 : test success
Example #2 : test success
Example #1
$input = [
  
=> [
    
=> 'a',
    
=> 'b',
    
=> 'c',
    
=> 'd',
    
=> 'e',
  ],
  
=> 2,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'array' => [
      
=> [
        
=> 'a',
        
=> 'b',
      ],
      
=> [
        
=> 'c',
        
=> 'd',
      ],
      
=> [
        
=> 'e',
      ],
    ],
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = [
  
=> [
    
=> 'a',
    
=> 'b',
    
=> 'c',
    
=> 'd',
    
=> 'e',
  ],
  
=> 2,
  
=> true,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'array' => [
      
=> [
        
=> 'a',
        
=> 'b',
      ],
      
=> [
        
=> 'c',
        
=> 'd',
      ],
      
=> [
        
=> 'e',
      ],
    ],
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]