Path Information
Split filename infos: pathinfo()
The function pathinfo()
is useful when you have a filename and you want to obtain:
dirname
: the directorybasename
: the filename with extensionextension
: the extensionfilename
: the filename without extension
The input is a string with the filename, the result is an associative array with dirname
, basename
, extension
, filename
attributes.