How to generate non-associative subarrays from a CodeIgniter query result
Is there a way to return a non-associative array as a result of a CI database query?
Say, I have this table:
id | Name
1 | Name1
2 | Name2
3 | Name3
4 | Name4
I want the names to be returned non-associatively.
$this->db->select('tablename')->result_array() returns an array of associative arrays.
Is this even possible in CodeIgniter? I don't want to have to add a foreach block to re-index the keys in every row if there is another way.