/** * Evaluate an expression, returning the value */ public function evaluateExpression($ps_expression, $pa_variables = null) { $this->errors = array(); $vm_ret = $this->parse($ps_expression, $pa_variables); ExpressionParser::$s_last_error = $this->getParseError(); return $this->getParseError() != 0 ? null : $vm_ret; }