PHP pathinfo function

The pathinfo() function in PHP returns information about the path of a file or directory in the form of an associative array or a string, depending on the option chosen in $option.

read more