显示下拉菜单

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

Example #1 : test success
Example #2 : test success
Example #3 : test success
Example #4 : test success
Example #1
$input = [
  
=> 'Hello World',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'contents' => 'Hello World',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = [
  
=> 'Hello',
  
=> ' World',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'contents' => 'Hello World',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #3
$input = [
  
=> [
    
=> 123,
    
=> 456,
  ],
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'contents' => 'Array',
  ],
  
'errors' => [
    
=> [
      
'code' => 8,
      
'message' => 'Array to string conversion',
    ],
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #4
$input = [
]
$expected_output = $test_output
$test_output = [
  
'errors' => [
    
=> [
      
'code' => 1,
      
'message' => 'Parse error: syntax error, unexpected \')\'',
    ],
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]