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]]) . '\''; } }