pathinfo: Returns information about a file path : Path « File Directory « PHP






pathinfo: Returns information about a file path

<?php
   $pathinfo = pathinfo("./text.txt");
   echo "Dir name: $pathinfo[dirname]<br />\n";
   echo "Base name: $pathinfo[basename] <br />\n";
   echo "Extension: $pathinfo[extension] <br />\n";
?>


           
       








Related examples in the same category