Get an array that contains information about a path in PHP

Description

The following code shows how to get an array that contains information about a path.

Example


  
<?php
    print_r(pathinfo("/testweb/test.txt"));
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    File »




Directory
DirectoryIterator
Drive
File
File Permission
File Read Save
FileSystemIterator
Path
Zip