## Example

`

     mixed pathinfo ( string $path [, int $options = PATHINFO_DIRNAME | PATHINFO_BASENAME | PATHINFO_EXTENSION | PATHINFO_FILENAME ] )

`

## Description

pathinfo() returns information about path: either an associative array or a string, depending on options.

## Return Values

If the options parameter is not passed, an associative array containing the following elements is returned: dirname, basename, extension (if any), and filename. Note: If the path does not have an extension, no extension element will be returned (see second example below). If options is present, returns a string containing the requested element.