显示下拉菜单

Test of PDO::getAttribute() 本页面仅提供英文版本。

Example #1 : test success
Example #2 : test not validated (platform dependant or random result etc.)
Example #1
$input = [
  
'__attribute' => 'PDO::ATTR_CASE',
  
'value' => 'PDO::CASE_LOWER',
  
=> 'PDO::ATTR_CASE',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'pdo' => 'PDO instance',
    
'bool' => true,
    
'mixed' => 2,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = [
  
=> 'PDO::ATTR_SERVER_VERSION',
]
test not validated (platform dependant or random result etc.)
$test_output = [
  
'result' => [
    
'pdo' => 'PDO instance',
    
'mixed' => '3.28.0',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]