Example #1
0
 /**
  * Free a result object
  *
  * This either saves memory in PHP (buffered queries) or on the server (unbuffered queries).
  * In general, queries are not large enough in result sets for this to be worth calling.
  */
 public function free()
 {
     if ($this->db) {
         $this->db->freeResult($this);
         $this->db = null;
     }
     $this->result = null;
 }