public function set_var($variable, $data)
    {
        $this->last_selector = null;

        if (!empty($data) && is_array($data)) {
            foreach ($data as $name => $d) {
                $data[$name] = $this->typecast($d, true, true);
            }
        } else {
            $data = $this->typecast($data, true, true);
        }

        return $this->cmd(9, array(
            !is_array($variable) ? array($variable) : $variable,
            array($data)
        ));
    }