显示下拉菜单

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

Example #1 : test success
Example #2 : test success
Example #3 : test success
Example #4 : test success
Example #1
$input = [
  
=> 'español',
  
=> 4,
  
=> 2,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => 'ñ',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = [
  
=> 'español',
  
=> 4,
  
=> 3,
  
=> 'UTF-8',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => 'ño',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #3
$input = [
  
=> 'español',
  
=> 5,
  
=> 1,
  
=> 'UTF-8',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => '',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #4
$input = [
  
=> 'español',
  
=> 5,
  
=> 2,
  
=> 'UTF-8',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => 'ñ',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]