public static function stripBase($path, $base = null) {
        if ($base === null)
            $base = getcwd();
        if (substr($path, 0, strlen($base)) === $base)
            return ltrim(substr($path, strlen($base) + 1), "/");
        else
            throw new PathException("\"$path\" does not contain base path \"$base\"");
    }
public static function stripBase($path, $base = null) {
        if ($base === null)
            $base = getcwd();
        if (substr($path, 0, strlen($base)) === $base)
            return ltrim(substr($path, strlen($base) + 1), "/");
        else
            throw new PathException("\"$path\" does not contain base path \"$base\"");
    }
public static function stripBase ( $ path , $ base = null ) { if ( $ base === null ) $ base = getcwd ( ) ; if ( substr ( $ path , 0 , strlen ( $ base ) ) === $ base ) return ltrim ( substr ( $ path , strlen ( $ base ) + 1 ) , "/" ) ; else throw new PathException ( "\"$path\" does not contain base path \"$base\"" ) ; }
Strips a base from a file or directory path.
If no base is supplied, the working directory is used.
@param string $path
@param string $base
@return string
Strips a base from a file or directory path . If no base is supplied the working directory is used .