Display the drop-down list

Test of preg_replace_callback()

Example #1 : test success
Example #2 : test success
Example #1
$input = [
  
=> '_SINGLE_QUOTE_|<p>\\s*\\w|_SINGLE_QUOTE_',
  
=> 'to_lower',
  
=> '<p>There is an elephant</p>',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => '<p>there is an elephant</p>',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = [
  
=> '_SINGLE_QUOTE_|(\\d{2}/\\d{2}/)(\\d{4})|_SINGLE_QUOTE_',
  
=> 'next_year',
  
=> 'April fools day is 04/01/2002
Last christmas was 12/24/2001
'
,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => 'April fools day is 04/01/2003
Last christmas was 12/24/2002
'
,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]