pathinfo Returns information about a file path Description arraypathinfo stringpath pathinfo returns an associative array containing information about path. The following array elements are returned: dirname, basename and extension. <function>pathinfo</function> Example ]]> Would produce: See also dirname, basename, parse_url and realpath.