Function __global->pathinfo
Definitions
sources_custom/phpstub.php
- Returns information about a file path.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $path | PATH | No | No | required parameter | N/A | N/A | The path to parse |
| $flags | integer | No | No | 15 | N/A | N/A | The PATHINFO_* constant defining what to return (default: all) |
Returns
- A map of details about the path or a specific element if flag is not PATHINFO_ALL
- Type: mixed
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Returns information about a file path.
*
* @param PATH $path The path to parse
* @param integer $flags The PATHINFO_* constant defining what to return (default: all)
* @return mixed A map of details about the path or a specific element if flag is not PATHINFO_ALL
*/
function pathinfo(string $path, int $flags = 15)
* Returns information about a file path.
*
* @param PATH $path The path to parse
* @param integer $flags The PATHINFO_* constant defining what to return (default: all)
* @return mixed A map of details about the path or a specific element if flag is not PATHINFO_ALL
*/
function pathinfo(string $path, int $flags = 15)

