foreach start from beginning of array() in codeigniter code example
Example: get result count codeigniter
public function record_count() {
return $this->db->count_all("tablename");
}
public function record_count() {
return $this->db->count_all("tablename");
}