ドロップダウンリストを表示

Test of PDO::quote() このページは英語でのみ提供されています。

Example #1 : test success
Example #2 : test success
Example #3 : test success
Example #1
$input = 'Nice'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'pdo' => 'PDO instance',
    
'string' => '\'Nice\'',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = 'Naughty \' string'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'pdo' => 'PDO instance',
    
'string' => '\'Naughty \'\' string\'',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #3
$input = 'Co\'mpl\'\'ex "st\'"ring'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'pdo' => 'PDO instance',
    
'string' => '\'Co\'\'mpl\'\'\'\'ex "st\'\'"ring\'',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]