Display the drop-down list

Test of mb_eregi()

Example #1 : test success
Example #2 : test success
Example #3 : test success
Example #4 : test success
Example #1
$input = [
  
'encoding' => 'UTF-8',
  
=> 'is',
  
=> 'Peter is a boy.',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => true,
    
'int' => 1,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = [
  
'encoding' => 'UTF-8',
  
=> 'is',
  
=> 'Peter is a boy.',
  
=> '$regs',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => true,
    
'regs' => [
      
=> 'is',
    ],
    
'int' => 2,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #3
$input = [
  
'encoding' => 'UTF-8',
  
=> '([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})',
  
=> '2015-02-13',
  
=> '$regs',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => true,
    
'regs' => [
      
=> '2015-02-13',
      
=> '2015',
      
=> '02',
      
=> '13',
    ],
    
'int' => 10,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #4
$input = [
  
'encoding' => 'UTF-8',
  
=> 'xyz',
  
=> 'Peter is a boy.',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => true,
    
'int' => false,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]