Display the drop-down list

Test of mb_ereg_search_init()

Example #1 : test success
Example #2 : test success
Example #1
$input = [
  
'encoding' => 'UTF-8',
  
=> 'Peter is a boy.',
  
=> '[i]',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => true,
    
'bool' => true,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = [
  
'encoding' => 'UTF-8',
  
=> 'Peter is a boy.',
  
=> '[i',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => true,
    
'bool' => false,
  ],
  
'errors' => [
    
=> [
      
'code' => 2,
      
'message' => 'mb_ereg_search_init(): mbregex compile err: premature end of char-class',
    ],
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]