显示下拉菜单

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

Example #1 : test success
Example #2 : test not validated (platform dependant or random result etc.)
Example #3 : test not validated (platform dependant or random result etc.)
Example #1
$input = '_DOUBLE_QUOTES_foo isn\'t\\n bar_DOUBLE_QUOTES_'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => 'foo isn\'t<br />
 bar'
,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = [
  
=> '_DOUBLE_QUOTES_Welcome\\r\\nThis is my HTML document_DOUBLE_QUOTES_',
  
=> false,
]
test not validated (platform dependant or random result etc.)
$test_output = [
  
'result' => [
    
'string' => 'Welcome<br>
This is my HTML document'
,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #3
$input = '_DOUBLE_QUOTES_This\\r\\nis\\n\\ra\\nstring\\r_DOUBLE_QUOTES_'
test not validated (platform dependant or random result etc.)
$test_output = [
  
'result' => [
    
'string' => 'This<br />
is<br />
a<br />
string<br /> '
,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]