Processing path

PHP has many features for the analysis and processing of text variables that contain the path to the file. The basename ($ path) returns the name of the file adirname

($path) everything except the file name. On the other hand function pathinfo ($path) returns an associative array containing information about path specified as a parameter – the key „dirname” contains the name of the directory, „basename” the file name „extension” – the file extension.

Close Menu