The following array elements are returned: dirname, basename and extension.
pathinfo() returns an associative array containing information about path. The following array elements are returned: dirname, basename and extension.