Display the drop-down list

pathinfo()

« parse_url | PDO::errorCode »
<?php
$mixed 
pathinfo (
    
// string $path
    
?  // [int $options = PATHINFO_DIRNAME | PATHINFO_BASENAME | PATHINFO_EXTENSION | PATHINFO_FILENAME]
);
?>
Result
$mixed = [
  
'dirname' => '/www/htdocs/inc',
  
'basename' => 'lib.inc.php',
  
'extension' => 'php',
  
'filename' => 'lib.inc',
]
Examples
#1 pathinfo  ("/www/htdocs/inc/lib.inc.php")
#2 pathinfo  ("/path/emptyextension.")
#3 pathinfo  ("/path/noextension")
See also
basename, dirname, parse_url