Display the drop-down list

Test of pathinfo()

Example #1 : test success
Example #2 : test success
Example #3 : test success
Example #1
$input = '/www/htdocs/inc/lib.inc.php'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => [
      
'dirname' => '/www/htdocs/inc',
      
'basename' => 'lib.inc.php',
      
'extension' => 'php',
      
'filename' => 'lib.inc',
    ],
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]
Example #2
$input = '/path/emptyextension.'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => [
      
'dirname' => '/path',
      
'basename' => 'emptyextension.',
      
'extension' => '',
      
'filename' => 'emptyextension',
    ],
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]
Example #3
$input = '/path/noextension'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => [
      
'dirname' => '/path',
      
'basename' => 'noextension',
      
'filename' => 'noextension',
    ],
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]