Display the drop-down list

Test of mb_detect_encoding()

Example #1 : test success
Example #2 : test success
Example #3 : test success
Example #4 : test success
Example #1
$input = 'éléphant'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => 'UTF-8',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = 'house'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => 'ASCII',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #3
$input = [
  
=> 'house',
  
=> 'UTF-8, ASCII',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => 'UTF-8',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #4
$input = [
  
=> 'house',
  
=> [
    
=> 'ASCII',
    
=> 'UTF-8',
  ],
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => 'ASCII',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]