PMA\libraries\Advisor::ruleExprEvaluateVariable PHP Метод

ruleExprEvaluateVariable() приватный Метод

Callback for evaluating variables in expression.
private ruleExprEvaluateVariable ( array $matches ) : string
$matches array List of matched elements form preg_replace_callback
Результат string Replacement value
    private function ruleExprEvaluateVariable($matches)
    {
        if (!isset($this->variables[$matches[1]])) {
            return $matches[1];
        }
        if (is_numeric($this->variables[$matches[1]])) {
            return $this->variables[$matches[1]];
        } else {
            return '\'' . addslashes($this->variables[$matches[1]]) . '\'';
        }
    }