protected function removePathPrefix($path, $prefix)
    {
        if ($prefix !== '/' && mb_stripos($path, $prefix) === 0) {
            $path = mb_substr($path, mb_strlen($prefix));
        }

        return $path;
    }
protected function removePathPrefix($path, $prefix)
    {
        if ($prefix !== '/' && mb_stripos($path, $prefix) === 0) {
            $path = mb_substr($path, mb_strlen($prefix));
        }

        return $path;
    }
protected function removePathPrefix ( $ path , $ prefix ) { if ( $ prefix !== '/' && mb_stripos ( $ path , $ prefix ) === 0 ) { $ path = mb_substr ( $ path , mb_strlen ( $ prefix ) ) ; } return $ path ; }
Removes prefix from path.

Checks for presence of $prefix and removes it from $path if found.

@param string $path
@param string $prefix

@return string
Removes prefix from path .