显示下拉菜单

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

Example #1 : test success
Example #2 : test success
Example #3 : test success
Example #4 : test success
Example #1
$input = '_DOUBLE_QUOTES_\\t\\tThese are a few words :) ...  _DOUBLE_QUOTES_'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => '        These are a few words :) ...',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = [
  
=> '_DOUBLE_QUOTES_\\t\\tThese are a few words :) ...  _DOUBLE_QUOTES_',
  
=> '_DOUBLE_QUOTES_ \\t._DOUBLE_QUOTES_',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => '        These are a few words :)',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #3
$input = [
  
=> 'Hello World',
  
=> 'Hdle',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => 'Hello Wor',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #4
$input = [
  
=> '_DOUBLE_QUOTES_\\x09Example string\\x0A_DOUBLE_QUOTES_',
  
=> '_DOUBLE_QUOTES_\\x00..\\x1F_DOUBLE_QUOTES_',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => '    Example string',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]