Display the drop-down list

Test of each()

Example #1 : test success
Example #2 : test success
Example #1
$input = [
  
'__array' => [
    
=> 'bob',
    
=> 'fred',
    
=> 'jussi',
    
=> 'jouni',
    
=> 'egon',
    
=> 'marliese',
  ],
  
=> '$array',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'array' => [
      
=> 'bob',
      
=> 'fred',
      
=> 'jussi',
      
=> 'jouni',
      
=> 'egon',
      
=> 'marliese',
    ],
    
'mixed' => [
      
=> 'bob',
      
'value' => 'bob',
      
=> 0,
      
'key' => 0,
    ],
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = [
  
'__array' => [
    
'Robert' => 'Bob',
    
'Seppo' => 'Sepi',
  ],
  
=> '$array',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'array' => [
      
'Robert' => 'Bob',
      
'Seppo' => 'Sepi',
    ],
    
'mixed' => [
      
=> 'Bob',
      
'value' => 'Bob',
      
=> 'Robert',
      
'key' => 'Robert',
    ],
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]