显示下拉菜单

Test of quotemeta() 本页面仅提供英文版本。

Example #1 : test success
Example #2 : test success
Example #1
$input = '_SINGLE_QUOTE_. \\ + * ? [ ^ ] ( $ )_SINGLE_QUOTE_'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => '\\. \\\\ \\+ \\* \\? \\[ \\^ \\] \\( \\$ \\)',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = 'abcd123'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => 'abcd123',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]