src/AbstractCache.php
/**
     * Returns the given string without the given prefix.
     *
     * @param  string $str    The subject string
     * @param  string $prefix The prefix to remove
     * @return string
     */
Returns the given string without the given prefix.
@param  string $str    The subject string
@param  string $prefix The prefix to remove
@return string
Returns the given string without the given prefix . @param string $str The subject string @param string $prefix The prefix to remove @return string
public function removePrefix($str, $prefix)
    {
        return substr($str, 0, strlen($prefix)) == $prefix
                ? substr($str, strlen($prefix))
                : $str;
    }
public function removePrefix ( $ str , $ prefix ) { return substr ( $ str , 0 , strlen ( $ prefix ) ) == $ prefix ? substr ( $ str , strlen ( $ prefix ) ) : $ str ; }
Returns the given string without the given prefix.
Returns the given string without the given prefix .