Stringbasename (stringpath [, stringsuffix]) is a string containing a full path pointing to a file. This function returns the basic file name. If the file name ends with suffix, this part will also be removed. In Windows, both the slash () and the backslash () can be used as Directory separators. In other rings
String basename (string path [, string suffix]) is a string containing a full path pointing to a file. This function returns the basic file name. If the file name ends with suffix, this part will also be removed. In Windows, both slash (/) and backslash (\) can be used as Directory separators. In other rings
StringBasename(String path [, string suffix])
A string containing a full path pointing to a file is provided. This function returns the basic file name. If the file name ends with suffix, this part will also be removed.
In Windows, both slash (/) and backslash (\) can be used as Directory separators. It is a slash (/) in other environments (/).
StringDirname(String path)
A string containing a full path pointing to a file is provided. This function returns the directory name after removing the file name.
In Windows, both slash (/) and backslash (\) can be used as Directory separators. It is a slash (/) in other environments (/).
ArrayPathinfo(String path [, int options])
Pathinfo () returns a union array containing path information. It includes the following array units: dirname, basename, and extension.
You can use the options parameter to specify the units to be returned. They include:PATHINFO_DIRNAME, PATHINFO_BASENAME and PATHINFO_EXTENSION. By default, all units are returned.
StringRealpath(String path)
Realpath () extends all symbolic connections and processes '/./', '/./' and excess '/' in the input path, and returns the normalized absolute path name. There is no symbolic connection in the returned path, '/./' or.
If realpath () fails, FALSE is returned. For example, if the object does not exist. On the BSD system, if only the path does not exist, PHP does not return FALSE as other systems do.
Document Excerpt from php folder operations