I use both result() and result_array().
Usually I like to get my result as array that's why I use result_array() mostly.
But I want to know which is the faster approach that I should follow. Which one of them is more efficient to use in regards to performance?
Here is the example I am talking about in CodeIgniter queries:
$query = $this->db->get(); $result = $query->result_array(); or is this should be the better approach?
$query = $this->db->get(); $result = $query->result(); Also, right now, I am using result_array() in my generic model.