src/Util.php
public static function pathinfo($path)
    {
        $pathinfo = compact('path');

        if ('' !== $dirname = dirname($path)) {
            $pathinfo['dirname'] = static::normalizeDirname($dirname);
        }

        $pathinfo['basename'] = static::basename($path);

        $pathinfo += pathinfo($pathinfo['basename']);

        return $pathinfo + ['dirname' => ''];
    }
public static function pathinfo($path)
    {
        $pathinfo = compact('path');

        if ('' !== $dirname = dirname($path)) {
            $pathinfo['dirname'] = static::normalizeDirname($dirname);
        }

        $pathinfo['basename'] = static::basename($path);

        $pathinfo += pathinfo($pathinfo['basename']);

        return $pathinfo + ['dirname' => ''];
    }
public static function pathinfo ( $ path ) { $ pathinfo = compact ( 'path' ) ; if ( '' !== $ dirname = dirname ( $ path ) ) { $ pathinfo [ 'dirname' ] = static :: normalizeDirname ( $ dirname ) ; } $ pathinfo [ 'basename' ] = static :: basename ( $ path ) ; $ pathinfo += pathinfo ( $ pathinfo [ 'basename' ] ) ; return $ pathinfo + [ 'dirname' => '' ] ; }
Get normalized pathinfo.

@param string $path

@return array pathinfo
Get normalized pathinfo .