显示下拉菜单

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

Example #1 : test success
Example #2 : test success
Example #3 : test success
Example #4 : test success
Example #5 : test success
Example #1
$input = [
  
=> '/etc/sudoers.d',
  
=> '.d',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => 'sudoers',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = [
  
=> '/etc/passwd',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => 'passwd',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #3
$input = [
  
=> '/etc/',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => 'etc',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #4
$input = [
  
=> '.',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => '.',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #5
$input = [
  
=> '/',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => '',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]