src/abstracts/AbstractSchema.php
public static function removePrefix($string, $prefix = null)
    {
        if (empty($prefix)) {
            $prefix = Yii::$app->controller->db->tablePrefix ?: null;
        }

        if (strpos($string, $prefix) === false) {
            return $string;
        }

        $position = strpos($string, $prefix) + strlen($prefix);

        return substr($string, $position);
    }
public static function removePrefix($string, $prefix = null)
    {
        if (empty($prefix)) {
            $prefix = Yii::$app->controller->db->tablePrefix ?: null;
        }

        if (strpos($string, $prefix) === false) {
            return $string;
        }

        $position = strpos($string, $prefix) + strlen($prefix);

        return substr($string, $position);
    }
remove prefix for $string
@param $string string
@param $prefix string
@return string