Display the drop-down list

Test of preg_quote()

Example #1 : test success
Example #2 : test success
Example #1
$input = [
  
=> '$40 for a g3/400',
  
=> '/',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => '\\$40 for a g3\\/400',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = '*very*'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => '\\*very\\*',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]