pathinfoReturns information about a file path
&reftitle.description;
mixedpathinfostringpathintoptionspathinfo returns an associative array
containing information about path.
&reftitle.parameters;
path
The path being checked.
options
You can specify which elements are returned with optional parameter
options. It composes from
PATHINFO_DIRNAME,
PATHINFO_BASENAME,
PATHINFO_EXTENSION and
PATHINFO_FILENAME. It
defaults to return all elements.
&reftitle.returnvalues;
The following associative array elements are returned:
dirname, basenameextension (if any), and filename.
If options is used, this function will return a
string if not all elements are requested.
&reftitle.changelog;
&Version;&Description;5.2.0
The PATHINFO_FILENAME constant was added.
&reftitle.examples;
pathinfo Example
]]>
&example.outputs;
&reftitle.notes;
For information on retrieving the current path info, read
the section on
predefined reserved variables.
&reftitle.seealso;
dirnamebasenameparse_urlrealpath